TRandom2


class description - source file - inheritance tree

class TRandom2 : public TRandom


    public:
TRandom2 TRandom2(UInt_t seed = 65539) TRandom2 TRandom2(const TRandom2&) virtual void ~TRandom2() static TClass* Class() virtual void GetSeed2(UInt_t& seed1, UInt_t& seed2) virtual TClass* IsA() const 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 SetSeed2(UInt_t seed1, UInt_t seed2) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(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

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

void RndmArray(Int_t n, Float_t *array)
 Return an array of n random numbers uniformly distributed in ]0,1]

void RndmArray(Int_t n, Double_t *array)
 Return an array of n random numbers uniformly distributed in ]0,1]

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)
               void StreamerNVirtual(TBuffer& b)
           TRandom2 TRandom2(const TRandom2&)


Author: Rene Brun 04/03/99
Last update: root/base:$Name: $:$Id: TRandom2.cxx,v 1.4 2003/01/26 21:03:16 brun Exp $


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.