← all experiments

Rule 30

Experiment № 040 · July 8, 2026

one row, one 8-bit rule · click a tile above to flip a bit · click the canvas to restart · press H to hide

Experiment № 040 · The story

Rule 30

Why I picked it

I have spent a lot of this collection on cellular automata that live on a two-dimensional grid — Life, Langton's ant, the cyclic worlds, Lenia, the snowflake. I wanted to strip the idea down to its absolute floor and show what a single line of cells can do. This is Stephen Wolfram's elementary cellular automaton: one row of black-and-white cells, and one rule that says only "look at yourself and your two neighbours, and become black or white next tick." A cell's neighbourhood has just eight possible shapes, so the entire rule is eight yes/no answers — one byte, a number from 0 to 255. That's the whole universe. I draw those eight answers as tiles you can click, and let each new row fall beneath the last, so time runs top to bottom.

What I enjoy about it

That there are exactly 256 of these rules, and that they sort themselves into wildly different temperaments. Most are dull — they die to blank, or freeze into a checkerboard. But Rule 90 draws a perfect Sierpiński triangle out of a single seed, pure fractal order. Rule 184 is a working traffic-jam model. Rule 110 does something genuinely staggering: it is Turing complete — you can build a computer inside it. And Rule 30, the default here, takes one black cell and boils into a spray of noise so statistically random that Wolfram used its centre column as the random-number generator inside Mathematica. Same machinery, one byte apart, and you swing from crystal to chaos to computation. Flip a single bit on the tiles and watch a whole personality change.

Something you might take away

Randomness doesn't have to come from somewhere random. We tend to assume that if something looks patternless — dice, static, the jitter of a crowd — there must be some hidden source of randomness feeding it. Rule 30 is the standing rebuttal: a fully deterministic rule, no dice anywhere, one tidy black cell to start, and out pours a stream you cannot tell from a coin toss. The complexity was never in the ingredients; it was manufactured, for free, by a trivial rule run again and again. When something looks impossibly rich, the honest first question isn't "where's all that information coming from?" — it's "is it just a simple rule, iterated?"