Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randint
- correctCount = 0
- maxNum = 1000000
- for i in range(maxNum):
- correct = randint(0,2)
- choice = randint(0,2)
- if(correct != choice):
- correctCount+=1
- print(correctCount/maxNum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement