TRandom3


class description - source file - inheritance tree

class TRandom3 : public TRandom


    public:
TRandom3 TRandom3(TRandom3&) TRandom3 TRandom3(UInt_t seed = 65539) virtual void ~TRandom3() TClass* Class() virtual TClass* IsA() const virtual Float_t Rndm(Int_t i = 0) virtual void SetSeed(UInt_t seed = 0) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

private:
UInt_t fMt[624] Int_t fCount624

Class Description

 TRandom3

 Random number generator class based on
   M. Matsumoto and T. Nishimura,
   Mersenne Twistor: A 623-diminsionally equidistributed
   uniform pseudorandom number generator
   ACM Transactions on Modeling and Computer Simulation,
   Vol. 8, No. 1, January 1998, pp 3--30.

 For more information see the Mersenne Twistor homepage
   http://www.math.keio.ac.jp/~matumoto/emt.html

 Advantage: large period 2**19937-1
            relativly fast
              (only two times slower than TRandom, but
               two times faster than TRandom2)
 Drawback:  a relative large internal state of 624 integers


 Aug.99 ROOT implementation based on CLHEP by P.Malzacher

 the original code contains the following copyright notice:

TRandom3(UInt_t seed)
*-*-*-*-*-*-*-*-*-*-*default constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ===================

~TRandom3()
*-*-*-*-*-*-*-*-*-*-*default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ==================

Float_t Rndm(Int_t)
  Machine independent random number generator.
  Produces uniformly-distributed floating points between 0 and 1.
  Method: Mersenne Twistor

void SetSeed(UInt_t seed)
  Set the random generator sequence



Inline Functions


            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
           TRandom3 TRandom3(TRandom3&)


Author: Peter Malzacher 31/08/99
Last update: 2.23/05 19/10/99 08.34.37 by Rene Brun


ROOT page - Class index - 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.