34#define INCLXX_IN_GEANT4_MODE 1
45#ifndef G4INCLRANDOM_HH_
46#define G4INCLRANDOM_HH_
99 return static_cast<T
>(
shoot1() * n);
107#ifdef INCLXX_IN_GEANT4_MODE
149#ifdef INCL_COUNT_RND_CALLS
151 unsigned long long getNumberOfCalls();
161#ifdef INCLXX_IN_GEANT4_MODE
172 return std::numeric_limits<Adapter::result_type>::min();
176 return std::numeric_limits<Adapter::result_type>::max();
180 #ifdef INCLXX_IN_GEANT4_MODE
181 return G4RandFlat::shootInt(
INT_MAX);
static constexpr result_type max()
static constexpr result_type min()
unsigned long result_type
result_type operator()() const
ThreeVector normVector(G4double norm=1.)
G4double gaussWithMemory(G4double sigma=1.)
ThreeVector sphereVector(G4double rmax=1.)
ThreeVector gaussVector(G4double sigma=1.)
Generate Gaussianly-distributed ThreeVectors.
SeedVector getSavedSeeds()
Get the saved status of the random-number generator.
Adapter const & getAdapter()
void setSeeds(const SeedVector &sv)
std::pair< G4double, G4double > correlatedGaussian(const G4double corrCoeff, const G4double x0=0., const G4double sigma=1.)
Generate pairs of correlated Gaussian random numbers.
void setGenerator(G4INCL::IRandomGenerator *aGenerator)
std::pair< G4double, G4double > correlatedUniform(const G4double corrCoeff)
Generate pairs of correlated uniform random numbers.
void saveSeeds()
Save the status of the random-number generator.
void initialize(Config const *const)
Initialize generator according to a Config object.