Message: Re: loss of randomness Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: loss of randomness 

Forum: Run Management
Re: Question loss of randomness (Nick Laver)
Date: 08 Oct, 2009
From: Gumplinger Peter <Gumplinger Peter>

Hi Nick,

I bet you don't seed your random number generator. Please, see:

http://www-geant4.kek.jp/lxr/source/examples/novice/N06/exampleN06.cc#L73

for how to do this by hand with C++. For the same seed, the same sequence of random numbers is generated.

If you want to have a seed that is automatic and random, see:

http://www-geant4.kek.jp/lxr/source/examples/advanced/cosmicray_charging/src/LISARunAction.cc#L109

Peter

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

1 Ok: Re: loss of randomness   (Nick Laver - 09 Oct, 2009)
1 Feedback: Re: loss of randomness   (Gumplinger Peter - 09 Oct, 2009)
(_ None: Re: loss of randomness   (michel maire - 10 Oct, 2009)
2 Ok: Re: loss of randomness   (Nick Laver - 09 Oct, 2009)
3 Question: Re: loss of randomness   (Eric - 27 Aug, 2010)
1 Feedback: Re: loss of randomness   (Gumplinger Peter - 27 Aug, 2010)
(_ Warning: Re: loss of randomness   (Tom Roberts - 27 Aug, 2010)
 Add Message Add Message
to: "Re: loss of randomness"

 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 ]