Message: Re: Question about saving Random Number Status Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Question about saving Random Number Status 

Keywords: random number
Forum: Run Management
Re: Question Question about saving Random Number Status (Ioannis Sechopoulos)
Re: Question Re: Question about saving Random Number Status (Emanuele Leonardi)
Date: 12 Jun, 2006
From: Gabriele Cosmo <Gabriele Cosmo>

Hi Emanuele,

> Another question: I would like to run several copies of the same program
> in parallel. In order to have independent results, I want to initialize
> the random engine of each copy with a different (independent) seed.

 the control of the -initial- seed of each run is something that you
 have to take care yourself inside your program, by using direct calls
 to the CLHEP library, according to the random engine you have selected
 (you can also define a command that does this, such that you can
 control it at run time).
 See also posting #118 in this Forum:

> I gave a look into a currentEvent.rndm file and it has a format like
> Uvec
> 1878463799
> 0
> 1487912126
> 868880632
> What is the meaning of the four numbers and how should I generate them
> in order to obtain independent seeds?

 The numbers stored are the status of the random engine at that moment.
 The format varies from engine to engine. Not all engines have their
 internal status corresponding to the actual seed, RanecuEngine has
 this feature, the majority however do not.
 To define independent initial seeds you should use the facilities in
 CLHEP as mentioned above.

 Cheers, Gabriele

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: Question about saving Random Number Status"

 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 ]