X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliRndm.cxx;h=302d644a1fcc4de17ea9250b78cbefa308e1fb69;hb=ae7d73d23b9c56dd77d9f44c1c11ccb67f2cb8fd;hp=f36663016e1a355bc3c4daca54da9d9218141570;hpb=e2afb3b68fe35ef24d08011ecde1da0fbf967d28;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliRndm.cxx b/STEER/AliRndm.cxx index f36663016e1..302d644a1fc 100644 --- a/STEER/AliRndm.cxx +++ b/STEER/AliRndm.cxx @@ -13,22 +13,14 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* -$Log$ -Revision 1.3 2000/12/21 15:30:18 fca -Correcting coding convention violations - -Revision 1.2 2000/12/01 08:40:48 alibrary -Correction of a small bug - sRandom can be used now - -Revision 1.1 2000/11/30 07:12:48 alibrary -Introducing new Rndm and QA classes - -*/ +/* $Id$ */ /////////////////////////////////////////////////////////////////////////////// -// // -// // +// Random number class for AliRoot +// This class allows to have different +// random number generator for different +// elements of AliRoot // +// It also allows saving and retrieving of the random number seeds /////////////////////////////////////////////////////////////////////////////// #include "TFile.h" @@ -42,17 +34,16 @@ ClassImp(AliRndm) //_______________________________________________________________________ AliRndm::AliRndm(): - fRandom(0) + fRandom(gRandom) { // // Default ctor // - SetRandom(); } //_______________________________________________________________________ AliRndm::AliRndm(const AliRndm& rn): - fRandom(0) + fRandom(gRandom) { // // Copy constructor @@ -68,7 +59,7 @@ void AliRndm::Copy(AliRndm&) const //_____________________________________________________________________________ -void AliRndm::Rndm(Float_t* array, const Int_t size) const +void AliRndm::Rndm(Float_t* array, Int_t size) const { // // Return an array of n random numbers uniformly distributed