Lurker News

Comments (230) 51 threads

Show all comments

Showing thread 44 of 51

ProgrammerMatt2 replies#
Can someone explain to me why there is such a large discrepancy for the different sides for math.random()? seems fairly large
xori#
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#
Looking at the Y axis scale shows that the variation is not as much as it seems.