React-sim
GitHub
Code for this example

Dice

1
6
0
1000

This simulation just throws a certain number of dice and tallies the result over time. For just one die, the expected results are that we'll get the same number of rolls for each value. For several dice, the bars are expected to follow a nice bell curve.

But actually, the shape of the results is pretty different from that. Random functions are not perfect.

Edit this page on GitHub
Previous:
The Chaos Game
Next:
Epidemic simulator
React-SimGitHub