logoalt Hacker News

NooneAtAll3 • today at 4:57 AM • 3 replies • view on HN

so it's not really *random* that isn't random enough - it's the operator% that worsens it


Replies

degamad • today at 7:25 AM

Exactly. There's many a page on random which explains why taking the modulus of rand is the wrong choice, but it's also the easiest one, which makes it all to common.

➕ show 1 reply
antonvs • today at 8:58 AM

Yes, but that wouldn’t work as clickbait.

caniload • today at 7:55 AM

[flagged]