12 #ifndef ROOT_TRandomGen 13 #define ROOT_TRandomGen 28 template<
class Engine>
37 fEngine.SetSeed(seed);
45 for (
int i = 0; i <
n; ++i) array[i] =
fEngine();
48 for (
int i = 0; i <
n; ++i) array[i] =
fEngine();
51 fEngine.SetSeed(seed);
63 #ifdef DEFINE_TEMPL_INSTANCE
virtual void SetName(const char *name)
Set the name of the TNamed.
#define ClassDef(name, id)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
TRandomGen< ROOT::Math::MixMaxEngine< 240, 0 > > TRandomMixMax
This is the base class for the ROOT Random number generators.
virtual void RndmArray(Int_t n, Float_t *array)
Return an array of n random numbers uniformly distributed in ]0,1].
TRandomGen< ROOT::Math::StdEngine< std::ranlux48 > > TRandomRanlux48
virtual Double_t Rndm()
Machine independent random number generator.
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
virtual Double_t Rndm()
Machine independent random number generator.
TRandomGen< ROOT::Math::MixMaxEngine< 17, 0 > > TRandomMixMax17
TRandomGen(ULong_t seed=1)
TRandomGen< ROOT::Math::MixMaxEngine< 256, 2 > > TRandomMixMax256
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void RndmArray(Int_t n, Double_t *array)
Return an array of n random numbers uniformly distributed in ]0,1].
TRandomGen< ROOT::Math::StdEngine< std::mt19937_64 > > TRandomMT64