Multiple runs and storing results

Hello all. I would like to do 1000 runs with 10,000 primary particles each time with run/beamOn. Presumably I will need to reset the random seed each time or I’ll obtain the same result? My aim is to then average these results. Firstly, is this possible? Secondly, the only way I can think to go about it is having a macro and doing 1000 /run/beamOn but I’m sure there’s a simpler way - perhaps using a loop? Would I then be able to have separate ascii files with the data for each run? Thank you!