[SciPy-user] rand, random and seed
Nils Wagner
nwagner at mecha.uni-stuttgart.de
Fri Oct 10 09:15:12 EDT 2003
Dear experts,
What is going on here
from scipy import *
from RandomArray import *
seed() # Set seeds based on current time
a = get_seed() # What seeds were used
print a
print random((2,2))
print rand(2,2)
seed(a[0],a[1]) # resetting the same seeds
print random((2,2)) # should yield the same results for both,
rand and random
print rand(2,2) # Am I missing something
Any suggestion ?
Nils
More information about the SciPy-User
mailing list