Project

General

Profile

Pseudorandomness

Originally, artg4 used a hardcoded seed for its pseudorandom generator (12345).

Now, the seed can be either set in the FHiCL configuration file or generated at runtime. When configuring artg4Main, simply give a seed using seed: xxx. To tell the program to generate a seed at runtime (using the current time and process ID), set the 'seed' to -1.

Note: The default configuration sets seed to -1, so jobs now will run with different seeds by default, rather than reproducing the same results in distinct jobs. This is a change from the original behavior!