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

Question Random Number generation 

Keywords: Random Numbers
Forum: Run Management
Date: 18 Jun, 2002
From: Michael Famiano <Michael Famiano>

I'm trying to generate a particle at a random position using the G4UniformRand() command, but I'm not sure I'm initializing it correctly, because I keep getting the same sequence of random numbers every time I run the code. I'm following the examples given, but can't seem to find any example for randomizing or initializing the new seeds. Can someone help me? Thanks,

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

1 None: Re: Random Number generation   (michel maire - 08 Jul, 2002)
 Add Message Add Message
to: "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 ]