Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

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

9 hours ago (nullonerror.org)

1 comment

delduca

Reply

kingstnap  1 hour 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.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities