random seed

Robert Kern rkern at ucsd.edu
Wed Aug 17 00:14:13 CEST 2005

vivek7006 at gmail.com wrote:
> Thanks. I guess I will use  the system time and pass it as seed
> explicitly. My goal is to replicate the random numbers that I generate
> to ensure repeatabilty in the regression test suite that  I am trying
> to write.

In that case you should just pick a single seed yourself instead of 
getting it from system time.


is traditional and works just fine.

Other favorites:


Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter

More information about the Python-list mailing list