util random code example
Example 1: random java
import java.util.Random();
Random <name> = new Random();
<variable> = <name>.nextInt(<excuslive top limit>);
Example 2: java random seed
Random rand = new Random(System.currentTimeMillis());
import java.util.Random();
Random <name> = new Random();
<variable> = <name>.nextInt(<excuslive top limit>);
Random rand = new Random(System.currentTimeMillis());