I am running several simulations of my model with various settings. For each run with the same setting I would like my turtles (called bees) to always start from the same position in the model but have always 'energy_threshold' value assigned randomly and different for each bee. There are also other procedures besides the listed two, were I want randomness to be different in between the runs so the only repeated procedures would be bees starting from the same spot. If I set seed in setup procedure, bees will always have the same energy threshold, and this is not what I want, if I set seed in create_bumblebees procedure, all bees will go to the same spot. I tried to experiment with 'with-local-randomness' but it did not work. I would appreciate any help.
to create_bumblebees
ask bees [set size 5
move-to one-of plants
set energy_threshold random 10 ]
end
to setup random-seed 4
create-bees 5
create_bumblebees end
Aucun commentaire:
Enregistrer un commentaire