34#define INCLXX_IN_GEANT4_MODE 1
45#ifndef G4INCLRANDOM_HH_
46#define G4INCLRANDOM_HH_
56#ifdef INCLXX_IN_GEANT4_MODE
101 return static_cast<T
>(
shoot1() * n);
109#ifdef INCLXX_IN_GEANT4_MODE
151#ifdef INCL_COUNT_RND_CALLS
153 unsigned long long getNumberOfCalls();
163#ifdef INCLXX_IN_GEANT4_MODE
174 return std::numeric_limits<Adapter::result_type>::min();
178 return std::numeric_limits<Adapter::result_type>::max();
183 #ifdef INCLXX_IN_GEANT4_MODE
184 return G4RandFlat::shootInt(
INT_MAX);
static constexpr result_type max()
static constexpr result_type min()
unsigned long long result_type
result_type operator()() const
ThreeVector normVector(G4double norm=1.)
G4double gaussWithMemory(G4double sigma=1.)
ThreeVector sphereVector(G4double rmax=1.)
G4double gauss(G4double sigma=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.