Multiple Choice
Which of the following expression yields an integer between 0 and 100, inclusive?
A) (int) (Math.random() * 100 + 1)
B) (int) (Math.random() * 101)
C) (int) (Math.random() * 100)
D) (int) (Math.random() * 100) + 1
Correct Answer:
Verified
Related Questions
Q1: Write a loop that computes (No need
Q2: What is the output of the following
Q3: What is i after the following for
Q5: How many times will the following code
Q6: Analyze the following code: 
Q7: Analyze the following code. Q8: Write a complete program that prints numbers![]()
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