15#ifndef ROOT_Math_GSLRngROOTWrapper
16#define ROOT_Math_GSLRngROOTWrapper
18#include "gsl/gsl_rng.h"
25 template<
class Engine>
41 static double Rndm(
void * p) {
47 static void Seed(
void * p,
unsigned long seed) {
54 wr->fEngine =
new Engine();
58 if (seed == 0)
return;
61 static void Free(
void *p) {
63 if (wr->fEngine)
delete wr->fEngine;
68 static unsigned long Max() {
return Engine::MaxInt(); }
69 static unsigned long Min() {
return Engine::MinInt(); }
const gsl_rng_type * gsl_rng_mixmax
ROOT::Math::GSLRngROOTWrapper< ROOT::Math::MixMaxEngine< 240, 0 > > GSLMixMaxWrapper
static const gsl_rng_type mixmax_type
Namespace for new Math classes and functions.
Namespace for new ROOT classes and functions.
static unsigned long IntRndm(void *p)
static void Seed(void *p, unsigned long seed)
static unsigned long Max()
static std::string Name()
static void Free(void *p)
static unsigned long Min()
static double Rndm(void *p)