Skip to content

Instantly share code, notes, and snippets.

@mteam88
Created September 1, 2021 23:11
Show Gist options
  • Save mteam88/33f9e64a9c8650c551478c673273da93 to your computer and use it in GitHub Desktop.
Save mteam88/33f9e64a9c8650c551478c673273da93 to your computer and use it in GitHub Desktop.
basketball1&1
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