* provided "as is" without express or implied warranty. *
**************************************************************************/
-/* $Header$ */
+/* $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