swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Random Seed question


From: Theodore C. Belding
Subject: Re: Random Seed question
Date: Mon, 31 Jan 2000 18:06:38 -0500 (EST)

On Mon, 31 Jan 2000, Miles Parker wrote:

> One
> little problem I have is that I use current time in millis, which is a
> pretty big number. Its kind of silly to have to jot down seeds like
> '949340224380' but I'm afraid to simply shrink the number by division or
> modulous or whatever. I was thinking I could just keep the 'little'
> decimal end, in effect mod 10^5 or something. Does this sound ok? Does
> anyone have any otehr nice 'safe' ways to do this while keeping things
> arbitrary?

If you reduce the space of seeds like this, you increase the chance that
you'll re-use a seed and thus have 2 runs with the same stream of
random numbers, if you simply pick the seeds at random or use the
current timestamp.
-Ted

--
Ted Belding                              address@hidden 
University of Michigan Center for the Study of Complex Systems
Homepage: http://www-personal.umich.edu/~streak/
PGP key:  http://www-personal.umich.edu/~streak/pgp-key.html




                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]