Skip to content

Commit 4df35e5

Browse files
JostMigendaRobadob
andauthored
remove pRNG seeds
no longer necessary, now that input data is generated exactly once Co-authored-by: Robert Chisholm <[email protected]>
1 parent 5e6cb1f commit 4df35e5

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

episodes/optimisation-data-structures-algorithms.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ import random
239239
from timeit import timeit
240240

241241
N = 25000 # Number of elements in the list
242-
random.seed(12) # Ensure every list is the same
243242
data = [random.randint(0, int(N/2)) for i in range(N)]
244243

245244
def uniqueSet():
@@ -320,7 +319,6 @@ from bisect import bisect_left
320319
N = 25000 # Number of elements in list
321320
M = 2 # N*M == Range over which the elements span
322321

323-
random.seed(12) # Ensure every list is the same
324322
st = set([random.randint(0, int(N*M)) for i in range(N)])
325323
ls = list(st)
326324
ls.sort() # Sort required for binary search

episodes/optimisation-using-python.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ from timeit import timeit
115115

116116
N = 2500 # Number of elements in list
117117
M = 2 # N*M == Range over which the elements span
118-
random.seed(12) # Ensure every list is the same
119118
ls = [random.randint(0, int(N*M)) for i in range(N)]
120119

121120
def manualSearch():

0 commit comments

Comments
 (0)