Which of the following is a JavaScript function for generating a random number between 0 and 1?
A. Math.random()
B. Math.floor()
C. Math.ceil()
D. None of the above
Answer:A
Which of the following is a JavaScript function for generating a random number between 0 and 1?
A. Math.random() B. Math.floor() C. Math.ceil() D. None of the above