Multiple Choice
What will be the range of the random numbers generated by the following code snippet? Random generator = new Random() ;
Int r1 = generator.nextInt(50) + 1;
A) Between 1 and 49
B) Between 0 and 50
C) Between 0 and 49
D) Between 1 and 50
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: What does the following loop compute? Scanner
Q3: Which of the following activities can be
Q4: Which of the following is considered a
Q5: What is the output of the code
Q6: What is the output of the following
Q7: Which of the following conditions can be
Q8: Is the following code snippet legal? boolean
Q9: What will be the output of the
Q10: Choose the loop that is equivalent to
Q11: What is the output of the following