What is use of math.random() ?
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.
choose a number between 0 - 1.
it is use for get the random value