This is an interesting and very well written article on random number generation:
https://medium.com/@betable/tifu-by-using-math-random-f1c308c4fd9d#.nk9324n3r
1 short snippet from it:
More at the link.
https://medium.com/@betable/tifu-by-using-math-random-f1c308c4fd9d#.nk9324n3r
1 short snippet from it:
Quote
The same thing is happening with the V8 PRNG and our random identifiers — under certain conditions, the PRNG’s lack of randomness is making it less likely that we’ll see a collision.
In this case the generator’s determinism worked in our favor, but that’s not always true. The general lesson here is that, even for a high quality PRNG, you can’t assume a random distribution unless the generator’s cycle length is much larger than the number of random values you’re generating.
More at the link.








