from random import randint, random, uniform import turtle as t t.shape('turtle') while True: t.right(uniform(-120, 120)) t.forward(uniform(0, 50))