// @(#)root/base:$Name: $:$Id: TRandom.h,v 1.1.1.1 2000/05/16 17:00:39 rdm Exp $ // Author: Rene Brun 15/12/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TRandom #define ROOT_TRandom ////////////////////////////////////////////////////////////////////////// // // // TRandom // // // // Simple prototype random number generator class. // // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TNamed #include "TNamed.h" #endif class TRandom : public TNamed { protected: UInt_t fSeed; //Random number generator seed public: TRandom(UInt_t seed=65539); virtual ~TRandom(); virtual Int_t Binomial(Int_t ntot, Float_t prob); virtual Double_t Exp(Double_t tau); virtual Double_t Gaus(Float_t mean=0, Float_t sigma=1); virtual UInt_t GetSeed() {return fSeed;} virtual UInt_t Integer(UInt_t imax); virtual Double_t Landau(Float_t mean=0, Float_t sigma=1); virtual Int_t Poisson(Float_t mean); virtual void Rannor(Float_t &a, Float_t &b); virtual void SetSeed(UInt_t seed=65539); virtual Float_t Rndm(Int_t i=0); virtual Double_t Uniform(Double_t x1=1); ClassDef(TRandom,1) // Random number generators }; R__EXTERN TRandom *gRandom; #endif