import java.util.Random(); Random <name> = new Random(); <variable> = <name>.nextInt(<excuslive top limit>);