Every grain lands on the middle square, and any square with 4 grains topples, one to each neighbour. Nothing else shapes this pattern.
GRAINS1,048,576
SPEED
Grains poured
Topplings so far
Width of the pile
Twice the grains, about 1.4 times as wide (the square root of 2): the same shapes come back, finer. Point at the pileTap the pile for a hand lens.
Drop grains, watch avalanches
ClickTap a square to drop one grain on it, or pour a handful. A full square topples; its neighbours may fill and topple too.
TRAY
HANDFUL
WHERE
SPEED
Grains on the tray
Fallen off the edge
Latest avalanche
Biggest so far
Try this: press ALL 3s, then clicktap the middle square. One grain sets off an avalanche that topples every square on the tray, and the pattern it leaves behind is not random at all.
Any order, the same pile
The same heap, toppled two ways. On the left every full square topples at once; on the right one full square at a time, picked at random. The end is always identical.
GRAINS
SPEED
ALL AT ONCEONE AT RANDOMTopplings so farSquares still fullGrains off the edge
Deepak Dhar proved in 1990 that this always happens: each square ends up toppling the same number of times whatever the order, so the grains end in the same places.
No typical size
Grains dropped at random on a full tray: most do nothing, a few sweep the whole tray.
TRAY
DROPS
START
Settings changed: press RUN
Drops
Toppled nothing
Biggest
Slope
Sandpiles add
Tip pile B onto pile A, square by square, then topple. ClickTap a square of A or B to add a grain (a 3 goes back to 0).
On a 3 by 3 tray the zero is 2 1 2 / 1 0 1 / 2 1 2: add it to any pile that a long run of dropping keeps coming back to, and the pile is unchanged. The empty tray is not one of those piles, so it is not the zero.
Try this: press B = THE ZERO, then ADD THEM: A comes back unchanged. Now make A all 0s and add again.