35 virtual Int_t
Binomial(Int_t ntot, Double_t prob);
37 virtual void Circle(Double_t &
x, Double_t &
y, Double_t r);
38 virtual Double_t
Exp(Double_t
tau);
39 virtual Double_t
Gaus(Double_t mean=0, Double_t sigma=1);
41 virtual UInt_t
Integer(UInt_t imax);
42 virtual Double_t
Landau(Double_t mean=0, Double_t sigma=1);
43 virtual Int_t
Poisson(Double_t mean);
44 virtual Double_t
PoissonD(Double_t mean);
45 virtual void Rannor(Float_t &a, Float_t &
b);
46 virtual void Rannor(Double_t &a, Double_t &b);
48 virtual void SetSeed(ULong_t seed=0);
49 virtual Double_t
Rndm();
51 virtual Double_t
Rndm(Int_t ) {
return Rndm(); }
52 virtual void RndmArray(Int_t n, Float_t *array);
53 virtual void RndmArray(Int_t n, Double_t *array);
54 virtual void Sphere(Double_t &
x, Double_t &
y, Double_t &
z, Double_t r);
55 virtual Double_t
Uniform(Double_t x1=1);
56 virtual Double_t
Uniform(Double_t x1, Double_t x2);
57 virtual void WriteRandom(
const char *filename)
const;
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 Int_t Binomial(Int_t ntot, Double_t prob)
Generates a random integer N according to the binomial law.
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 ~TRandom()
Default destructor.
you should not use this method at all Int_t y
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t tau
This is the base class for the ROOT Random number generators.
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
virtual Double_t Rndm(Int_t)
virtual UInt_t Integer(UInt_t imax)
Returns a random integer on [ 0, imax-1 ].
virtual Double_t Rndm()
Machine independent random number generator.
TRandom(UInt_t seed=65539)
Default constructor. For seed see SetSeed().
virtual void WriteRandom(const char *filename) const
Writes random generator status to filename.
R__EXTERN TRandom * gRandom
virtual void Circle(Double_t &x, Double_t &y, Double_t r)
Generates random vectors, uniformly distributed over a circle of given radius.
* x
Deprecated and error prone model selection interface.
virtual void ReadRandom(const char *filename)
Reads saved random generator status from filename.
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
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 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...
you should not use this method at all Int_t Int_t z
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
virtual Int_t Poisson(Double_t mean)
Generates a random integer N according to a Poisson law.
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 UInt_t GetSeed() const
virtual Double_t Exp(Double_t tau)
Returns an exponential deviate.