how to get a RNG from a set of numbers in java code example
Example 1: how to generate random number in java
double x = (Math.random()*((max-min)+1))+min;
Example 2: java random number generator in range
int rand = ThreadLocalRandom.current().nextInt(x,y);