Generation of a Sierpinski Triangle by starting with the three corners of a triangle and a random point (I'm just picking a corner for simplicity). Then do the following:

Source code