Explain the function of Math.random( ). In which package does Math class belong to?
Answers
Answered by
1
Math.random() returns a random value of data type double between 0 and 1, including 0 and excluding 1.
Math.random() is a function of the java.lang.Math class.
The Math class in java is present in the java.lang.* package.
Answered by
0
Answer:
random() is a function of the java. lang. Math class. The Math class in java is present in the java.
Similar questions