another fix
This commit is contained in:
@@ -79,7 +79,7 @@ void PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
|
||||
// This function is called at the begining of event
|
||||
|
||||
G4double rand = 0;
|
||||
while(rand > 1 || rand < 0)
|
||||
while(rand > 1 || rand <= 0)
|
||||
rand = G4INCL::Random::shoot();
|
||||
partEnergy = rand*(maxPartEnergy-minPartEnergy)+minPartEnergy;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user