MUstar

IoT Python3 0814 - Turtle_random1

Aug 15th, 2017
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import turtle as t
  2. import random
  3.  
  4. t.shape("turtle")
  5. t.speed(0)
  6.  
  7. for x in range(500):
  8.     a = random.randint(1,360)
  9.     t.setheading(a)
  10.     t.forward(10)
RAW Paste Data