swarm-support
[Top][All Lists]
Advanced

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

RE: run with random seed?


From: Keith L. Jenkins
Subject: RE: run with random seed?
Date: Tue, 19 Jun 2001 10:27:02 -0700

Naturally, with a random seed, if you particularly interesting results, you
may not be able to duplicate them.

Keith

-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf Of Sven N. Thommesen
Sent: Saturday, June 16, 2001 1:52 PM
To: address@hidden
Subject: Re: run with random seed?


At 11:53 AM 6/16/01, Marcus wrote:

>KG> -s, --varyseed      Run with a random seed
>
>KG> May I take this to mean that the time is used as the random seed?
>
>MGD> The `seconds since 1970' * the current process id is used as the
>random seed.

Marcus is correct. (See src/random/random.m and src/random/randomDefs.h.)

Note that if your program resets the random generator with a seed provided
by the user (e.g. in a probe panel) or read in from a .scm file, the act of
resetting the generator will override the random starting seed. The
initialization of the default generator with either a random or a fixed
standard seed happens before any user code is executed.

Sven


                  ==================================
   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.



                  ==================================
   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]