How can I see (print) the seed that my model uses to generate randomness? I would like to specify the seed number when presenting the findings.
Thank you.
As far as I know, NetLogo does not provide access to the state of the random number generator. It is a good practice to report the seed. Ordinarily one achieves this by setting it explicitly. E.g., in setup, one can include random-seed behaviorspace-run-number
, so that each run uses a different seed. You can then include the run number in your report. If you don't want to set your own seed, you will still have to create it and store it. E.g., create a run-seed
global, and then during setup set run-seed new-seed random-seed run-seed
.