I want to use random.seed() so that my runs will be reproducible. I tried the following code to test if using a set seed value works, however it does not provide me with the same output after every run:
import numpy
import random
order = [1,2,3,4,5]
random.seed(1)
random_num = list(numpy.random.permutation(order))
print(random_num)
Now what I want is that when I run the code, it would give me the same output every time. However, this is not what happens. Now I get [1, 3, 2, 4, 5], but the second run gives me [3, 1, 4, 2, 5], which is not the same.
How should I (can I) use the seed value to get reproducible runs?