I have 5 procedures that I would like to execute for the agent, but I need them to randomize the order of their execution.
For instance:
1) possible ordering
ask turtles [ move eat breed search spawn]
2) another possible ordering
ask turtles [spawn eat move search breed]
3) another possible ordering:
ask turtles [search breed eat move spawn]
etc. Is there an efficient way to execute procedures in random order?
source
share