Skip to content

Instantly share code, notes, and snippets.

@eustin
Last active March 31, 2020 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eustin/7469fa74cefcbdec7d0ce08e7c693ba5 to your computer and use it in GitHub Desktop.
Save eustin/7469fa74cefcbdec7d0ce08e7c693ba5 to your computer and use it in GitHub Desktop.
def draw_pairs(num_trials):
trial_results = {}
for trial_num in range(num_trials):
if trial_num % 10000 == 0:
print(f"running trial number: {trial_num}")
trial_results[trial_num+1] = np.random.choice(all_socks, 2, replace=False).tolist()
return trial_results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment