I was just messing around with some shapes and made it possible to randomly generate a new pattern each time. This is also my first program using turtles.
Run the program each time to see a new pattern. Each pattern has a code, and the colour of the pattern is based on this code.
It may take a while for some patterns to finish, and some patterns do not loop back.