Computer Science, asked by asmitaghosh249, 2 months ago

Explain the function of Math.random( ). In which package does Math class belong to?​

Answers

Answered by Anonymous
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 shabanamdevi80
0

Answer:

random() is a function of the java. lang. Math class. The Math class in java is present in the java.

Similar questions