Skip to content

Instantly share code, notes, and snippets.

@mizvol
Created February 10, 2019 14:57
Show Gist options
  • Save mizvol/0772b2f4a9ac222d48175fec2831f7a4 to your computer and use it in GitHub Desktop.
Save mizvol/0772b2f4a9ac222d48175fec2831f7a4 to your computer and use it in GitHub Desktop.
import numpy as np
choice1_count = 0
choice2_count = 0
for i in range(0,7000000):
random_choice = random.SystemRandom()
choice = random_choice.choice([1,2])
if choice == 1:
choice1_count += 1
else:
choice2_count += 1
if choice1_count > choice2_count:
print("We go on the 13th")
else:
print("We go on the 14th")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment