what actually Math.random do?i cant get it
Rolls a very large di©e and stretches the result to be in the 0,1 interval.
More correctly, it uses a pseudorandom generator, a mathematical function that returns pretty ok numbers that look uncorrelated.
1 Like