Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ProgrammerMatt
· 9y ago · 0 comments
Can someone explain to me why there is such a large discrepancy for the different sides for math.random()? seems fairly large
Comments
[–]
xori
9y ago
It's actually not that bad. The graph just emphasises the subtle differences. The worst one (a 10) was rolled 696 times extra over the expected number of 100,000 rolls. That's like 0.3% deviation.
[–]
marcofiset
9y ago
Looking at the Y axis scale shows that the variation is not as much as it seems.