More problems with random seed (was Re: whrandom seed question)

Stelios Kyriacou kyriacou at umbc.edu
Wed Nov 24 20:33:57 CET 1999


Thanks both for your correct answer. Unfortunately I hate to say but my
ultimate question (which I never mentioned :) ) is unanswered. Why
when I call the gauss distribution I get 2 alternating values:

>>> random.seed(0); print random.gauss(0,1); 
2.11224018067
>>> random.seed(0); print random.gauss(0,1); 
0.225551631579
>>> random.seed(0); print random.gauss(0,1); 
2.11224018067
>>> random.seed(0); print random.gauss(0,1); 
0.225551631579
>>> random.seed(0); print random.gauss(0,1); 
2.11224018067
>>> 


Any more ideas? 
Stelios





More information about the Python-list mailing list