Message: Re: Random Number Generation Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Random Number Generation 

Forum: Run Management
Re: None Random Number Generation (Chelsea Bartram)
Date: 25 May, 2015
From: Tom Roberts <Tom Roberts>


I seed the random number generator with the event number at the start of each event. That way I don't need to keep track of seeds, and can still re-run an event (e.g. after identifying an outlier in a histogram, and then re-running it with visualization on). Note this has to happen inside GeneratePrimaries() because BeginOfEventAction() is too late.

The default generator (HepJamesRandom) guarantees good, independent performance for event numbers from 0 to 900,000,000.

 Add Message Add Message
to: "Re: Random Number Generation"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]