Write a program to generate and print a number using Math.random().
Answers
Answered by
2
random() returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0. This new pseudorandom-number generator is used thereafter for all calls to this method and is used nowhere else.
Similar questions