Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can someone explain to me why there is such a large discrepancy for the different sides for math.random()? seems fairly large


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.


Looking at the Y axis scale shows that the variation is not as much as it seems.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: