Dear Seth,
Thank you very much. I tried to set the random-seed in the setup procedure but the model still runs differently every time. Is there a particular number of random-seed that I need to designate??
Appreciated much,
Nicole
On Mon, Mar 3, 2008 at 12:27 PM, Seth Tisue < seth

tisue.net"
>seth
tisue.net> wrote:
>>>>> "Nicole" == Nicole Li < nicole.ykli%40gmail.com" target="_blank">nicole.ykli
gmail.com> writes:
Nicole> (A) Besides the Netlogo primitives with "random" in their names
Nicole> (e.g., random, random-float, random-normal), what other Netlogo
Nicole> operations/ commands will make random choices? The manual said
Nicole> that the primitives: *one-of, n-of, sprout*, and *downhill* are
Nicole> all governed by random seed. Are there any others???
We don't have a list, but the individual entries in the NetLogo
Dictionary should say if a primitive does something random.
Remember also that *any* operation involving an agentset may use random
numbers, since agentsets are always in random order. So that means most
models make pervasive use of randomness throughout.
Nicole> (B) I'm a bit unclear about the primitive of
Nicole> "*with-local-randomness*". Besides the examples in the manual,
Nicole> are there any models in Netlogo library using
Nicole> "*with-local-randomness*" and so I can learn more how to use
Nicole> it???
There aren't. It's not a primitive a model would normally use. If
you39;re not sure if you need it, you almost certainly don't.
Nicole> (C) Let's say I want to create reproducible model runs. My
Nicole> model has a number of agentsets. Each agentset use different
Nicole> "random" primitives, e.g., the 1st agentset has
Nicole> "*random-normal*", the 2nd agentset has "*sprout*" and the 3rd
Nicole> agentset has "*one-of*". If I want to create reproducible
Nicole> model runs, is that: (1) I need to record the random seed for
Nicole> the first run of the model that I'd like to reproduce, (2) I
Nicole> need to use "with-local-randomess" for each agentset (???), and
Nicole> (3) I need to use the same random seed as in (1) for the second
Nicole> run? As such, the model will use the same random seed for all
Nicole> the "random" primitives across the agentsets. And the model's
Nicole> outputs will be the same in the first run and the second
Nicole> run. Is that correct?
If you want to a reproducible model run in NetLogo, all you need to do
is set the random seed beforehand. You don't need to do anything else
special. Try it!
Hope this helps,
--
Seth Tisue / http://tisue.net
lead developer, NetLogo: http://ccl.northwestern.edu/netlogo/
--
Nicole yee-key LI
Doctoral Student
Department of Communication Science and Disorders
University of Pittsburgh
.