What will be the range of the random numbers generated by the following code snippet?
Int r1 = (int) (Math.random() * 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
Q5: What is the output of the following
Q6: What is the output of the following
Q10: What is the output of the code
Q15: What is the output of the code
Q24: What is the result when the following
Q25: Which of the following is the correct
Q32: What is the data type of the
Q63: Given the following code snippet, what should
Q77: What is the output of the code
Q112: Which of the following activities can be
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents