57 virtual void WriteRandom(
const char *filename)
const;
static const double x2[5]
static const double x1[5]
#define ClassDef(name, id)
R__EXTERN TRandom * gRandom
The TNamed class is the base class for all named ROOT classes.
This is the base class for the ROOT Random number generators.
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 sigm...
virtual void RndmArray(Int_t n, Float_t *array)
Return an array of n random numbers uniformly distributed in ]0,1].
virtual Int_t Poisson(Double_t mean)
Generates a random integer N according to a Poisson law.
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
virtual void WriteRandom(const char *filename) const
Writes random generator status to filename.
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
virtual Double_t PoissonD(Double_t mean)
Generates a random number according to a Poisson law.
virtual void ReadRandom(const char *filename)
Reads saved random generator status from filename.
virtual Double_t Exp(Double_t tau)
Returns an exponential deviate.
virtual void Circle(Double_t &x, Double_t &y, Double_t r)
Generates random vectors, uniformly distributed over a circle of given radius.
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
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.
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 paramet...
virtual ~TRandom()
Default destructor.
TRandom(UInt_t seed=65539)
Default constructor. For seed see SetSeed().
virtual Int_t Binomial(Int_t ntot, Double_t prob)
Generates a random integer N according to the binomial law.
virtual Double_t BreitWigner(Double_t mean=0, Double_t gamma=1)
Return a number distributed following a BreitWigner function with mean and gamma.
virtual Double_t Rndm(Int_t)
virtual UInt_t GetSeed() const
virtual Double_t Rndm()
Machine independent random number generator.
virtual UInt_t Integer(UInt_t imax)
Returns a random integer on [ 0, imax-1 ].