Advertisement
T0RB1T

wegsmol

Feb 21st, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. import random
  2.  
  3. stats = [1, 1, 1, 1, 1, 1]
  4. stats[(random.randint(0,5))] += 7
  5.  
  6. level = int(input("What is the level? > "))
  7. level+=3
  8. times_looped = 0
  9.  
  10. while times_looped < level:
  11.     randstat = (random.randint(0,5))
  12.     if stats[randstat]>=10:
  13.         print("too big")
  14.     else:
  15.         times_looped+=1
  16.         stats[randstat] += 1
  17.  
  18. print(stats)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement