Question: CHALLENGE ACTIVITY 1.26.3: Fixed range of random numbers. Type two statements that use nextInt() to print 2 random integers between (and including) 100 and 149.
CHALLENGE ACTIVITY
1.26.3: Fixed range of random numbers.
Type two statements that use nextInt() to print 2 random integers between (and including) 100 and 149. End with a newline. Ex:
112 102
Note: For this activity, using one statement may yield different output (due to the interpreter calling randGen.nextInt() in a different order). Use two statements for this activity.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
