seeds in gaussian random number generator

Frédéric van der Plancke fplancke at my-deja.com
Thu Sep 14 21:07:26 CEST 2000


In article <39BF30C0.AC4F66CF at fnal.gov>,
  Rob Snihur <snihur at fnal.gov> wrote:
> Hi,
> Is there any way to set the initial seed for the Gaussian
> random number generator function "gauss"?
> Thanks,
> -rob

The seed function is not in module random (too bad) but in
module whrandom:

So you can do:
    import whrandom
    whrandom.seed()
    #or, with up to three integer arguments:
    whrandom.seed(1,2,3)

(whrandom is actually meant to be "hidden implementation
details", but we obviously still need it explicitly.)

--
Frederic van der Plancke
e-mail address: reverse and add dot-at-dot to:
      <com writeme vdplancke frederic>
(I don't read <fplancke at my-deja.com> regularly.)


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list