// @(#)root/mathcore:$Id$
// Author: Rene Brun   04/03/99

/*************************************************************************
 * 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_TRandom2
#define ROOT_TRandom2



//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TRandom2                                                             //
//                                                                      //
// random number generator class (periodicity > 10**26)                 //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TRandom
#include "TRandom.h"
#endif

class TRandom2 : public TRandom {

protected:
   UInt_t   fSeed1;  //Random number generator seed 1
   UInt_t   fSeed2;  //Random number generator seed 2

public:
   TRandom2(UInt_t seed=1);
   virtual ~TRandom2();
   virtual  Double_t Rndm(Int_t i=0);
   virtual  void     RndmArray(Int_t n, Float_t *array);
   virtual  void     RndmArray(Int_t n, Double_t *array);
   virtual  void     SetSeed(UInt_t seed=0);

   ClassDef(TRandom2,1)  //Random number generator with periodicity of 10**26
};

R__EXTERN TRandom *gRandom;

#endif
 TRandom2.h:1
 TRandom2.h:2
 TRandom2.h:3
 TRandom2.h:4
 TRandom2.h:5
 TRandom2.h:6
 TRandom2.h:7
 TRandom2.h:8
 TRandom2.h:9
 TRandom2.h:10
 TRandom2.h:11
 TRandom2.h:12
 TRandom2.h:13
 TRandom2.h:14
 TRandom2.h:15
 TRandom2.h:16
 TRandom2.h:17
 TRandom2.h:18
 TRandom2.h:19
 TRandom2.h:20
 TRandom2.h:21
 TRandom2.h:22
 TRandom2.h:23
 TRandom2.h:24
 TRandom2.h:25
 TRandom2.h:26
 TRandom2.h:27
 TRandom2.h:28
 TRandom2.h:29
 TRandom2.h:30
 TRandom2.h:31
 TRandom2.h:32
 TRandom2.h:33
 TRandom2.h:34
 TRandom2.h:35
 TRandom2.h:36
 TRandom2.h:37
 TRandom2.h:38
 TRandom2.h:39
 TRandom2.h:40
 TRandom2.h:41
 TRandom2.h:42
 TRandom2.h:43
 TRandom2.h:44
 TRandom2.h:45
 TRandom2.h:46
 TRandom2.h:47
 TRandom2.h:48