]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliRndm.cxx
New comparison macros (M.Ivanov)
[u/mrichter/AliRoot.git] / STEER / AliRndm.cxx
index f36663016e1a355bc3c4daca54da9d9218141570..302d644a1fcc4de17ea9250b78cbefa308e1fb69 100644 (file)
  * 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