Answer:
Replace /* Your solution goes here */ with:
System.out.println(randGen.nextInt(49) + 100);
System.out.println(randGen.nextInt(49) + 100);
Step-by-step explanation:
Required
Statements to print two random numbers between 100 and 149 (both inclusive)
First, the random numbers must be generated. From the template given, the random object, randGen, has been created.
The syntax to then follow to generate between the interval is:
randGen.nextInt(high-low) + low;
Where:
high = 149 and low = 100
So, the statement becomes:
randGen.nextInt(149 - 100) + 100;
randGen.nextInt(49) + 100;
Lastly, print the statements:
System.out.println(randGen.nextInt(49) + 100);
System.out.println(randGen.nextInt(49) + 100);