ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

Article on JS V8 math.random()

(1/1)

Renegade:
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:

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.
--- End quote ---

More at the link.

Deozaan:
Interesting read, even if it was a bit above my understanding. :)

Renegade:
Interesting read, even if it was a bit above my understanding. :)
-Deozaan (November 21, 2015, 05:02 PM)
--- End quote ---

You're not the only one. I understood a good amount of it, but not all of it.

Tuxman:
Well, yes, Chrome's underlying "engines" are not actually known for being secure. Yesterday I've read another thing: Did you know that Chrom[e|ium] lets you force-install "admin" add-ons?

Navigation

[0] Message Index

Go to full version