Solved

Which of the Following Generates a Random Number Between 0

Question 45

Multiple Choice

Which of the following generates a random number between 0 and 10?


A) var randomNum = Math.random() * 10;
RandomNum = Math.floor(randomNum) + 1;
Document.write(randomNum) ;

B) var randomNum = Calculate.random() * 10;
Document.write(randomNum) ;

C) var randomNum = Number.random() * 10;
Document.write(randomNum) ;

D) var randomNum = Math.randomNumber() * 10;
Document.write(randomNum) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions