Ported one of Jared Tarbell's experiments from the Flash Math Creativity days to Javascript