random number with time java code example
Example 1: how to generate random number in java
double x = (Math.random()*((max-min)+1))+min;
Example 2: wait random time java
Thread.sleep((long)(Math.random() * 1000));
double x = (Math.random()*((max-min)+1))+min;
Thread.sleep((long)(Math.random() * 1000));