Plots the iterations of the Chaos game for various inputs. For more information about the chaos game, see here. This can be used to create various fractals such as the sirpinski triangle (see attached images for more examples). Simply load it into Julia and type
chaosgame(n,r)
for your choice of polygon (n) and distance parameter (r). For more information about good choices for n and r, see the link above.