1#ifndef G_RANDOM_ENGINE_H
2#define G_RANDOM_ENGINE_H
7template <
typename Engine,
typename SeedType>
22 inline double Draw() {
return static_cast<Engine*
>(
this)->
Draw(); }
26 inline void Print() {
return static_cast<Engine*
>(
this)->
Print(); }
void Print()
Print some information about the random number generator.
double operator()()
Draw a random number.
RandomEngine(const SeedType &seed)
seed_t GetSeed()
Retrieve the seed that was used.
void SetSeed(const seed_t &seed)
Initialise the random number generator.
double Draw()
Draw a random number.