Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randint
- from collections import Counter
- def rand5():
- return randint(0, 5)
- def rand7():
- return 1 + (sum(rand5() for _ in range(100)) % 8)
- a = Counter([rand7() for _ in range(10000)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement