Question: Assume x is an int variable, and rand references a Random object. What does the following statement do? x = rand.nextInt(100);
Assume x is an int variable, and rand references a Random object. What does the following statement do?
x = rand.nextInt(100);
Step by Step Solution
3.50 Rating (170 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
