Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
NooneAtAll3
· 1mo ago · 0 comments
so it's not really *random* that isn't random enough - it's the operator% that worsens it
Comments
[–]
degamad
1mo ago
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.
[–]
binaryturtle
1mo ago
`man random` has no such disclaimer here on OS X. I guess this refers to a Linux man page?
[–]
antonvs
1mo ago
Yes, but that wouldn’t work as clickbait.