library: libCore #include "TRandom2.h" |
TRandom2
class description - header file - source file - inheritance tree (.pdf)
public:
TRandom2(UInt_t seed = 1)
TRandom2(const TRandom2&)
virtual ~TRandom2()
static TClass* Class()
virtual TClass* IsA() const
TRandom2& operator=(const TRandom2&)
virtual Double_t Rndm(Int_t i = 0)
virtual void RndmArray(Int_t n, Float_t* array)
virtual void RndmArray(Int_t n, Double_t* array)
virtual void SetSeed(UInt_t seed = 0)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
UInt_t fSeed1 Random number generator seed 1
UInt_t fSeed2 Random number generator seed 2
TRandom2
Random number generator class based on the maximally quidistributed combined
Tausworthe generator by L'Ecuyer.
The period of the generator is 2**88 (about 10**26) and it uses only 3 words
for the state.
For more information see:
P. L'Ecuyer, Mathematics of Computation, 65, 213 (1996)
P. L'Ecuyer, Mathematics of Computation, 68, 225 (1999)
The publication are available online at
http://www.iro.umontreal.ca/~lecuyer/myftp/papers/tausme.ps
http://www.iro.umontreal.ca/~lecuyer/myftp/papers/tausme2.ps
TRandom2(UInt_t seed)
*-*-*-*-*-*-*-*-*-*-*default constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-* ===================
~TRandom2()
*-*-*-*-*-*-*-*-*-*-*default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-* ==================
Double_t Rndm(Int_t)
TausWorth generator from L'Ecuyer, uses as seed 3x32bits integers
Use a mask of 0xffffffffUL to make in work on 64 bit machines
Periodicity of about 10**26
void RndmArray(Int_t n, Float_t *array)
Return an array of n random numbers uniformly distributed in ]0,1]
void SetSeed(UInt_t seed)
Set the generator seed.
If the seed given is zero, generate automatically seed values which
are different every time by using TRandom3 and TUUID
If a seed is given generate the other two needed for the generator state using
a linear congruential generator
The only condition, stated at the end of the 1999 L'Ecuyer paper is that the seeds
must be greater than 1,7 and 15.
Author: Rene Brun, Lorenzo Moneta 17/05/2006
Last update: root/base:$Name: $:$Id: TRandom2.cxx,v 1.11 2006/05/18 09:37:04 brun Exp $
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.