//random with minimum value of 10 int randomNumber = random.nextInt(90) + 10; // from 10 upto 99 included