40 SetTitle(
"Random number generator with period of about 10**26");
60 #define TAUSWORTHE(s,a,b,c,d) (((s &c) <<d) & 0xffffffffUL ) ^ ((((s <<a) & 0xffffffffUL )^s) >>b)
63 const double kScale = 2.3283064365386963e-10;
70 if (iy)
return kScale*
static_cast<Double_t>(iy);
79 const double kScale = 2.3283064365386963e-10;
89 if (iy) array[i] = (
Float_t)(kScale*static_cast<Double_t>(iy));
90 else array[i] =
Rndm();
99 const double kScale = 2.3283064365386963e-10;
102 for(
Int_t i=0; i<
n; i++) {
108 if (iy) array[i] = kScale*
static_cast<Double_t>(iy);
109 else array[i] =
Rndm();
124 #define LCG(n) ((69069 * n) & 0xffffffffUL) // linear congurential generator
157 for (
int i = 0; i < 6; ++i)
ClassImp(TRandom2) TRandom2
*-*-*-*-*-*-*-*-*-*-*default constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-* *-* =================== ...
virtual void SetSeed(UInt_t seed=0)
Set the generator seed.
Random number generator class based on the maximally quidistributed combined Tausworthe generator by ...
virtual Double_t Rndm(Int_t i=0)
TausWorth generator from L'Ecuyer, uses as seed 3x32bits integers Use a mask of 0xffffffffUL to make ...
virtual ~TRandom2()
*-*-*-*-*-*-*-*-*-*-*default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-* *-* ================== ...
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
virtual void RndmArray(Int_t n, Float_t *array)
Return an array of n random numbers uniformly distributed in ]0,1].
void GetUUID(UChar_t uuid[16]) const
Return uuid in specified buffer (16 byte = 128 bits).
#define TAUSWORTHE(s, a, b, c, d)