4 ms·
> the worst generator you can think of Decrementing the seed by 1 with each call[0], which is a standards-compliant rand implementation. Although it looks lik
by neerdowell 11y ago
> the worst generator you can think of
Decrementing the seed by 1 with each call[0], which is a standards-compliant rand implementation.
Although it looks like a standards-compliant Math.random() implementation isn't allowed to be quite that bad[1].
[0] https://marc.info/?l=openbsd-tech&m=141773078029373&w=2 https://marc.info/?l=openbsd-tech&m=141773078029373&w=2
[1] http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.14 http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.1...
- tlrobinson 11y agoObligatory XKCD: https://xkcd.com/221/ https://xkcd.com/221/