What is the range of numbers returned by Math.random() method?
(a) -1.0 to 1.0
(b) -1 to 1
(c) 0 to 100
(d) 0.0 to 1.0
(a) -1.0 to 1.0
(b) -1 to 1
(c) 0 to 100
(d) 0.0 to 1.0
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Right option is (d) 0.0 to 1.0
Explanation: Math.random() returns only double value greater than or equal to 0.0 and less than 1.0.