TRandom2


class description - source file - inheritance tree

class TRandom2 : public TRandom


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

Data Members

protected:
Double_t fSeed1 Random number generator seed 1 Double_t fSeed2 Random number generator seed 2

Class Description

 TRandom2

 Random number generator class (periodicity > 10**14).

 Has a better periodicity than its base class TRandom but is slower.


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

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

void GetSeed2(UInt_t &seed1, UInt_t &seed2)
  Set the random generator seeds

Float_t Rndm(Int_t)
  Machine independent random number generator.
  Produces uniformly-distributed floating points between 0 and 1.
  Identical sequence on all machines of >= 32 bits.
  Periodicity > 10**14

void SetSeed(UInt_t seed)
  Set the random generator sequence (not yet implemented)

void SetSeed2(UInt_t seed1, UInt_t seed2)
  Set the random generator seeds
  Note that seed1 and seed2 must be < 2147483647



Inline Functions


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


Author: Rene Brun 04/03/99
Last update: 2.23/04 08/10/99 08.26.12 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.