Each ball is a random walk: at each peg row it bounces left/right. Summing many independent bounces → the pile arranges itself into a normal curve (a bell). Change p to shift the center, add rows to smooth the bell.
—
Click the floor = drop one ball · adjust the sliders on the right to change peg rows, bias & speed
Your browser has canvas disabled.
Goodness-of-fit to the normal curve over time (Law of Large Numbers)empirical fittheory = 100%