The Ranlux Random number generator class.
The algorithm for this random engine has been taken from the original implementation in FORTRAN by Fred James as part of CLHEP.
The initialisation is carried out using a Multiplicative Congruential generator using formula constants of L'Ecuyer as described in "F.James,
Comp. Phys. Comm. 60 (1990) 329-344".
Definition at line 27 of file TRandom1.h.
|
| TRandom1 () |
| default constructor More...
|
|
| TRandom1 (UInt_t seed, Int_t lux=3) |
| Luxury level is set in the same way as the original FORTRAN routine. More...
|
|
| TRandom1 (Int_t rowIndex, Int_t colIndex, Int_t lux) |
|
virtual | ~TRandom1 () |
| destructor More...
|
|
virtual Int_t | GetLuxury () const |
|
virtual UInt_t | GetSeed () const |
|
const UInt_t * | GetTheSeeds () const |
|
virtual Double_t | Rndm () |
| return a random number in ]0,1] More...
|
|
virtual void | RndmArray (Int_t size, Float_t *vect) |
| return an array of random numbers in ]0,1] More...
|
|
virtual void | RndmArray (Int_t size, Double_t *vect) |
| return an array of random numbers in ]0,1[ More...
|
|
virtual void | SetSeed (ULong_t seed) |
| Set the random generator seed. More...
|
|
virtual void | SetSeed2 (UInt_t seed, Int_t lux=3) |
| The initialisation is carried out using a Multiplicative Congruential generator using formula constants of L'Ecuyer as described in "A review of pseudorandom number generators" (Fred James) published in Computer Physics Communications 60 (1990) pages 329-344. More...
|
|
virtual void | SetSeeds (const UInt_t *seeds, Int_t lux=3) |
| set seeds More...
|
|
Public Member Functions inherited from TRandom |
| TRandom (UInt_t seed=65539) |
| Default constructor. For seed see SetSeed(). More...
|
|
virtual | ~TRandom () |
| Default destructor. More...
|
|
virtual Int_t | Binomial (Int_t ntot, Double_t prob) |
| Generates a random integer N according to the binomial law. More...
|
|
virtual Double_t | BreitWigner (Double_t mean=0, Double_t gamma=1) |
| Return a number distributed following a BreitWigner function with mean and gamma. More...
|
|
virtual void | Circle (Double_t &x, Double_t &y, Double_t r) |
| Generates random vectors, uniformly distributed over a circle of given radius. More...
|
|
virtual Double_t | Exp (Double_t tau) |
| Returns an exponential deviate. More...
|
|
virtual Double_t | Gaus (Double_t mean=0, Double_t sigma=1) |
| Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigma. More...
|
|
virtual UInt_t | Integer (UInt_t imax) |
| Returns a random integer on [ 0, imax-1 ]. More...
|
|
virtual Double_t | Landau (Double_t mean=0, Double_t sigma=1) |
| Generate a random number following a Landau distribution with location parameter mu and scale parameter sigma: Landau( (x-mu)/sigma ) Note that mu is not the mpv(most probable value) of the Landa distribution and sigma is not the standard deviation of the distribution which is not defined. More...
|
|
virtual Int_t | Poisson (Double_t mean) |
| Generates a random integer N according to a Poisson law. More...
|
|
virtual Double_t | PoissonD (Double_t mean) |
| Generates a random number according to a Poisson law. More...
|
|
virtual void | Rannor (Float_t &a, Float_t &b) |
| Return 2 numbers distributed following a gaussian with mean=0 and sigma=1. More...
|
|
virtual void | Rannor (Double_t &a, Double_t &b) |
| Return 2 numbers distributed following a gaussian with mean=0 and sigma=1. More...
|
|
virtual void | ReadRandom (const char *filename) |
| Reads saved random generator status from filename. More...
|
|
virtual Double_t | Rndm (Int_t) |
|
virtual void | Sphere (Double_t &x, Double_t &y, Double_t &z, Double_t r) |
| Generates random vectors, uniformly distributed over the surface of a sphere of given radius. More...
|
|
virtual Double_t | Uniform (Double_t x1=1) |
| Returns a uniform deviate on the interval (0, x1). More...
|
|
virtual Double_t | Uniform (Double_t x1, Double_t x2) |
| Returns a uniform deviate on the interval (x1, x2). More...
|
|
virtual void | WriteRandom (const char *filename) const |
| Writes random generator status to filename. More...
|
|
Public Member Functions inherited from ROOT::Math::TRandomEngine |
virtual | ~TRandomEngine () |
|
TRandom1::TRandom1 |
( |
UInt_t |
seed, |
|
|
Int_t |
lux = 3 |
|
) |
| |
Luxury level is set in the same way as the original FORTRAN routine.
level 0 (p=24): equivalent to the original RCARRY of Marsaglia and Zaman, very long period, but fails many tests. level 1 (p=48): considerable improvement in quality over level 0, now passes the gap test, but still fails spectral test. level 2 (p=97): passes all known tests, but theoretically still defective. level 3 (p=223): DEFAULT VALUE. Any theoretically possible correlations have very small chance of being observed. level 4 (p=389): highest possible luxury, all 24 bits chaotic.
Definition at line 265 of file TRandom1.cxx.