Possible Duplicate:
How random is JavaScript’s Math.random?
Exactly what algorithm does Math.random()
use to generate its random numbers?
Given the format of a double, and the range that Math.random()
generates, how many possible outcomes are there?
Taking into account the above and the (in)accuracies of floating-point numbers, what are the odds of Math.random()
returning exactly 0?