Iterated function systems

Order from a random walk

Pick three corners of a triangle and any starting point. Roll a die, choose a corner at random, and move halfway toward it. Plot the point. Repeat. Despite the randomness, the points settle onto the Sierpiński triangle.

This “chaos game”, popularised by Michael Barnsley in the 1980s, shows that a fractal can be the attractor of a few simple contracting maps. Each map shrinks the plane toward one corner, and the attractor is the only shape that equals the union of its own shrunken copies.

Barnsley used four affine maps to generate a convincing fern, which made the method a staple of image compression research. Try five or six corners with different jump ratios below.

0 points plotted
Cite this page
APA

Fractalist. (2026). The chaos game: order from a random walk. ForeFractal. https://forefractal.com/explore/chaos-game/

MLA

Fractalist. “The chaos game: order from a random walk.” ForeFractal, 2026, https://forefractal.com/explore/chaos-game/. Accessed .

BibTeX
@misc{forefractal-explore-chaos-game,
  author = {Fractalist},
  title = {The chaos game: order from a random walk},
  year = {2026},
  howpublished = {\url{https://forefractal.com/explore/chaos-game/}},
  note = {ForeFractal}
}