[Tutor] Numeric RandomArray seed problem.

Pujo Aji ajikoe at gmail.com
Sun Jan 1 14:33:48 CET 2006


Thank you Kent.

pujo

On 1/1/06, Kent Johnson <kent37 at tds.net> wrote:
>
> Pujo Aji wrote:
> > Hello,
> >
> > I tried calling RandomArray.seed()
> > by calling RandomArray.get_seed() I get the seed number (x,y).
> > My problem is that x is always 113611 any advice?
>
> Take a look at the source for RandomArray.seed(). It more-or-less splits
> the decimal representation of the current time in half, using the high
> digits for x and the low digits for y. So x will change slowly, every
> few hours.
>
> Kent
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060101/b1b47486/attachment.html


More information about the Tutor mailing list