pastebin

Paste Search Dynamic
Recent pastes
random.randint
  1. import random
  2. x = 50
  3. old = 0
  4. while x < 80:
  5.         y = random.randint(0,3)
  6.         if y == old:
  7.                 y = (y + 1) % 4
  8.         old = y
  9.         print(str(x) + " " + str(y))
  10.         x += 0.125
Parsed in 0.003 seconds