random util in java 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());