UI command /random/setSeeds parses the arguments as integers instead of long int. Passing long type results in conversion to INT_MAX. Relevant code in G4RunMessenger.cc (line 614+) G4Tokenizer next(newValue); G4int idx = 0; long seeds[100]; G4String vl; while(!(vl = next()).isNull()) { seeds[idx] = (long) (StoI(vl)); idx++; } I suggest we create `G4long G4UImessenger::StoL(G4String)` method to fix it. Bug reported on Geant4 forum (https://geant4-forum.web.cern.ch/t/random-setseeds-seems-to-not-work/3541/7).
Fixed by introducing `G4long G4UImessenger::StoL(G4String)` method.