Advertisement
MUstar

IoT Python3 0814 - Turtle_random2

Aug 15th, 2017
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  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.     b = random.randint(1,20)
  11.     t.forward(10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement