Dear all,
Can anyone explain 2 lines for me? Thanks in advance.
G4int seconds = time(NULL);
G4Random::setTheSeed(seconds);
Dear all,
Can anyone explain 2 lines for me? Thanks in advance.
G4int seconds = time(NULL);
G4Random::setTheSeed(seconds);
setTheSeed function use a random number for particle generation. time(NULL) return to current data. So, the program use current time as initial random seed.
Thank you for your answer.