+ 1

What is use of math.random() ?

1st Feb 2016, 2:27 PM
Nilesh Solanki
Nilesh Solanki - avatar
3 ответов
+ 1
Math.random() returns a (pseudo)random number between 0 and 0.999999999... Some encryption programs use random numbers, you'd use a random number if you were writing a program to simulate tossing a coin or throwing dice. Random numbers are useful in statistics, and so on.
16th Apr 2016, 5:30 PM
Tony W
0
choose a number between 0 - 1.
10th Jun 2016, 12:42 AM
fishergio17
fishergio17 - avatar
0
it is use for get the random value
22nd Jun 2016, 4:01 PM
gandhiyash