The Chaos Game is played by specifying
a number of vertices
Now pick another vertex,
and so on. For example, take four vertices,
the corners of the unit square, and take
Suppose the random number generator begins by selecting the vertices in this order: 1, 3, 4, 3, 2. Here are the first five points generated by this run of the chaos game. If we continue, the points will fill in the square. This should be plausible: we start with a point inside the unit square, and each move is half-way between where we are and a corner of the square, so we never leave the square. Because we select the corners randomly, no part of the square is preferred over any other. So since some parts of the square fill in, all parts must fill in.
What would happen if we used just three vertices
Here are four more Chaos Game examples. Try to determine the shape before running the program or looking at the answer.
Example 1: vertices the corners of a
square,
Example 2: move the top right
vertex to the left,
Example 3: five vertices, four the
corners of a square, one at the center of the square,
Example 4: five vertices, four the
corners of a square, one at the center of the square,