Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ProgrammerMatt
on July 19, 2017
|
parent
|
context
|
favorite
| on:
Show HN: A Set of Dice That Follows the Gambler's ...
Can someone explain to me why there is such a large discrepancy for the different sides for math.random()? seems fairly large
xori
on July 19, 2017
|
next
[–]
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
on July 19, 2017
|
prev
[–]
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: