Message: Re: Not random enough Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Not random enough 

Forum: Run Management
Re: Question Not random enough (Yuri Burmistenko)
Date: 03 Jul, 2008
From: Gumplinger Peter <Gumplinger Peter>

Yuri, can it be that you have in your code:

CLHEP::HepRandom::setTheEngine

after you already issued:

CLHEP::HepRandom::setTheSeed

You must setTheEngine before setting the engine's seed. I made that mistake once and the new engine was using always the same default seed. (It's still wrong in the released version of /examples/field/field04/field04.cc - will be fixed in the next public release)

Else, I don't see anything wrong with your code.

Are you saying that the random number sequence you get is always the same and apparently not set by the system time?

 Add Message Add Message
to: "Re: Not random enough"

 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 ]