[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: random generator
From: |
Paul Johnson |
Subject: |
Re: random generator |
Date: |
Fri, 07 Jun 2002 09:03:37 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020516 |
run your model with the -s flag and it will use a different random seed.
In case you want to set the seed yourself, you can. There is a global
object "randomGenerator" and you can tell it what seed to use. Check the
UserGuide and reference manual for details.
Serban LASCU hotmail wrote:
hello!
i'm using uniformDblRand and uniformIntRand in ObjectiveC, but they are
generating the same numbers every time. how can i initialize the random
generator to get a really random series?
thanks, bye!
--
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.