Instructor
Ashish Thakur Replied on 09/10/2019
Please refer the below code and make sure that you provide the min value and max values correctly
Random rand = new Random();
int minValue = 100;
int maxValue = 103;
int rangeForGenerator = maxValue - minValue;
int generatedNumber = rand.nextInt(rangeForGenerator) + minValue;
System.out.println(generatedNumber);