What is the range of numbers returned by Math.random() method? i) -1.0 to 1.0 ii) -1 to 1 iii) 0 to 100 iv) 0.0 to 1.0

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 4RQ
icon
Related questions
Question

What is the range of numbers returned by Math.random() method?
i) -1.0 to 1.0
ii) -1 to 1
iii) 0 to 100
iv) 0.0 to 1.0

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr