Guest User

Untitled

a guest
Jan 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import urandom
  2. import time
  3.  
  4. while (True):
  5. phases = urandom.randint(1,7)
  6. phase_events = [urandom.randint(1,5) for _ in range (0, phases)]
  7. phase_timings = [urandom.randint(2,8)/10 for _ in range (0, phases)]
  8. phase_transitions = [urandom.randint(0,5)/10 for _ in range (0, phases)]
  9. cooldown = urandom.randint(0,10)/5
  10. cooldown_type = urandom.randint(0,13)
  11.  
  12. for phase in range(0, phases):
  13. for _ in range(0, phase_events[phase]):
  14. print(1)
  15. time.sleep(phase_timings[phase])
  16. print(0)
  17. time.sleep(phase_timings[phase]/10)
  18. print(1)
  19. time.sleep(phase_transitions[phase])
  20. print(0 if cooldown_type == 0 else 1)
  21. time.sleep(cooldown)
Add Comment
Please, Sign In to add comment