swarm-support
[Top][All Lists]
Advanced

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

Re: Random Seeds.


From: Paul Johnson
Subject: Re: Random Seeds.
Date: Thu, 10 Jan 2002 09:22:10 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226

J. McKenzie Alexander wrote:

The Swarm 2.2 pretests have a -S option that's allows setting a
particular value.


If one starts a model with a random seed using -s, how does one record that
random seed so that the run can later be reconstructed by starting the model
with -S?

the generator class has a method to retrieve its initial seed value. Like so:
 randomSeed = [randomGenerator getInitialSeed];

This gets the seed from swarms default "randomGenerator".

--
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700


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