Message: Re: Is random engine used in AnaEx01? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Is random engine used in AnaEx01? 

Forum: Documentation and Examples
Re: Question Is random engine used in AnaEx01? (Neoh)
Date: 27 Jan, 2010
From: Neoh <Neoh>

Here's what I've figured out.

The line

CLHEP::HepRandom::setTheEngine(new CLHEP::RanecuEngine);

is used to instantiate a static random engine, which will internally set a seed. This same seed will be used in every run, which is why the results are all same in every run. But a different seed will be provided if the program is recompiled.

Is that right?

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

1 Disagree: Re: Is random engine used in AnaEx01?   (Neoh - 28 Jan, 2010)
 Add Message Add Message
to: "Re: Is random engine used in AnaEx01?"

 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 ]