Created
September 1, 2021 23:11
-
-
Save mteam88/33f9e64a9c8650c551478c673273da93 to your computer and use it in GitHub Desktop.
basketball1&1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
TRIALS = 2000 | |
resultlist = [] | |
for i in range(TRIALS): | |
if random.randint(1,100) >= 72: | |
resultlist.append(0) | |
elif random.randint(1,100) >= 72: | |
resultlist.append(1) | |
else: | |
resultlist.append(2) | |
print(sum(resultlist)/TRIALS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment