Skip to content

Instantly share code, notes, and snippets.

@OneRaynyDay
Created December 29, 2017 08:12
Show Gist options
  • Save OneRaynyDay/6b73917ed7c9b8d31d1b91bbfd412067 to your computer and use it in GitHub Desktop.
Save OneRaynyDay/6b73917ed7c9b8d31d1b91bbfd412067 to your computer and use it in GitHub Desktop.
import numpy as np
import module
SEEDED = False # for .not_seeded. For .seeded, this is True.
NUM_TRIALS = 10
if SEEDED:
module.init()
for i in range(NUM_TRIALS):
print(np.random.random())
import numpy as np
def init():
np.random.seed(1)
SEEDED = False:
python main.py  ✓  10047  00:10:17
0.5592024795811346
0.9171189067826162
0.8378181816973035
0.8176003251538313
0.8866416373369628
0.8399333198299084
0.3874688301187855
0.7552803918552817
0.7476945214165834
python main.py  ✓  10048  00:10:19
0.34902503958655196
0.3271661885560938
0.2994756812738597
0.974888210634874
0.6959783958033942
0.731460968776797
0.34704232889451225
0.1953649129751096
0.5577960009342386
0.5317123500426102
python main.py  ✓  10048  00:10:46
0.17848480929271437
0.5783448007657241
0.901783686288442
0.15515987253850205
0.5255283542195832
0.7034962429990833
0.2584449597319123
0.5977622317480434
0.428705972153691
0.5665872091524455
python main.py  ✓  10048  00:10:47
0.8951829721304446
0.24448298605072294
0.3315907488046257
0.6744666009094906
0.5984044397890121
0.3788279221792843
0.5590869839598902
0.9395897526094493
0.44477453395021227
0.8021110597617769
python main.py  146 ↵  ⚙  10049  00:11:42
0.417022004702574
0.7203244934421581
0.00011437481734488664
0.30233257263183977
0.14675589081711304
0.0923385947687978
0.1862602113776709
0.34556072704304774
0.39676747423066994
0.538816734003357
python main.py  ✓  ⚙  10050  00:11:45
0.417022004702574
0.7203244934421581
0.00011437481734488664
0.30233257263183977
0.14675589081711304
0.0923385947687978
0.1862602113776709
0.34556072704304774
0.39676747423066994
0.538816734003357
python main.py  ✓  ⚙  10050  00:11:47
0.417022004702574
0.7203244934421581
0.00011437481734488664
0.30233257263183977
0.14675589081711304
0.0923385947687978
0.1862602113776709
0.34556072704304774
0.39676747423066994
0.538816734003357
python main.py  ✓  ⚙  10050  00:11:48
0.417022004702574
0.7203244934421581
0.00011437481734488664
0.30233257263183977
0.14675589081711304
0.0923385947687978
0.1862602113776709
0.34556072704304774
0.39676747423066994
0.538816734003357
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment