38 SetTitle(
"Random number generator with period of about 10**26");
57#define TAUSWORTHE(s,a,b,c,d) (((s &c) <<d) & 0xffffffffUL ) ^ ((((s <<a) & 0xffffffffUL )^s) >>b)
60 const double kScale = 2.3283064365386963e-10;
76 const double kScale = 2.3283064365386963e-10;
87 else array[i] =
Rndm();
96 const double kScale = 2.3283064365386963e-10;
106 else array[i] =
Rndm();
124#define LCG(n) ((69069 * n) & 0xffffffffUL)
151 for (
int i = 0; i < 6; ++i)
#define TAUSWORTHE(s, a, b, c, d)
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void SetName(const char *name)
Set the name of the TNamed.
Random number generator class based on the maximally quidistributed combined Tausworthe generator by ...
~TRandom2() override
Default destructor.
Double_t Rndm() override
TausWorth generator from L'Ecuyer, uses as seed 3x32bits integers Use a mask of 0xffffffffUL to make ...
TRandom2(UInt_t seed=1)
Default constructor.
void RndmArray(Int_t n, Float_t *array) override
Return an array of n random numbers uniformly distributed in ]0,1].
void SetSeed(ULong_t seed=0) override
Set the generator seed.
UInt_t GetSeed() const override
Returns one of the seeds of the generator.
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
void GetUUID(UChar_t uuid[16]) const
Return uuid in specified buffer (16 byte = 128 bits).