Will doing multiple runs in same macro gives unique events?

Hello everyone,

I want to run 10^6events
So have a macro like

/run/beamOn 10^5


10 times

OR

/run/beamOn 10^6

will these two give same output, in terms of uniqueness of the events. Or precisely, will the random number reinitialised again and again after each run/beamOn 10^5 in first case?

Thanks a lot!

Yes, you will get different unique events with each /run/beamOn in a single macro file. If you want unique events across multiple jobs, then you need to have your own method to set unique random seeds (people often use time() for that, or parse a UUID from libuuid, or something similar).

Thank You for clarification, yeah I was trying in sequential mode (no mukti threading).

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.