* 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"
//_______________________________________________________________________
AliRndm::AliRndm():
- fRandom(0)
+ fRandom(gRandom)
{
//
// Default ctor
//
- SetRandom();
}
//_______________________________________________________________________
AliRndm::AliRndm(const AliRndm& rn):
- fRandom(0)
+ fRandom(gRandom)
{
//
// Copy constructor
//_____________________________________________________________________________
-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