Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random as r
- drop = 0.02
- i = 1
- found = []
- for foo in range(0,10001):
- while True:
- prob = r.randint(1, 100)
- if prob <= drop*100:
- found.append(i)
- i = 1
- break
- i += 1
- print(sorted(found)[5000])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement