Hacker News

delduca
Replacing Lua's math.random module with the Xorshift algorithm nullonerror.org

kingstnap6 hours ago

Meanwhile Python uses the Mersenne Twister. Its funny because the stdlib gives it's these merits:

> The Mersenne Twister is one of the most extensively tested random number generators in existence.

Yes, extensively tested and known to be bad. And that is in spite of having 2500 bytes of state and being extremely slow.

hn-front (c) 2024 voximity
source