by masklinn · 10y ago · 0 comments
> A worth to read article by [Mike Malone](https://medium.com/@betable/tifu-by-using-math-random-f1c308...) explains the problem with Math.random() in more detail.
Probably the source of the shuffle (though it was not mentioned, its visualisation was used) considering the old implementation had been there for about 6 years (and had been partially busted until a few weeks ago)
This has been pointed out to us, and having understood the
problem and after some research, we decided to reimplement
Math.random based on an algorithm called xorshift128+.
Hyperlink in the first sentence.(Incidentally, the link is broken in your quote)
Hah you're right, completely missed the link (I'll put up a weak defence that gray visited links in gray text didn't help).
Thank you for the correction, noted in the original comment.
> (Incidentally, the link is broken in your quote)
Unsurprising, I just copy/pasted the section without fixing up the link. Fixed.