how to make the random util package go up to a certain point code example Example: how to generate random number in java double x = (Math.random()*((max-min)+1))+min;