Iterated function systems are a set of affine transformations that are then called repeatedly and at random. These systems often result in self-similar fractals. You can see a few examples below, and also play with the transformations to see what effect it has. Check out Iterated function systems and Barnsley fern on Wikipedia for more details.

Probability Transform Translate