Last active
March 31, 2020 08:27
-
-
Save eustin/7469fa74cefcbdec7d0ce08e7c693ba5 to your computer and use it in GitHub Desktop.
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
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