ExRandom  3.0
exrandom::table_gen Class Reference

a class to generate tabulated random numbers. More...

#include <exrandom/table_gen.hpp>

Public Member Functions

 table_gen (const std::string &seed="")
 
void seed (const std::string &seed="")
 
uint_t operator() ()
 

Detailed Description

a class to generate tabulated random numbers.

The "seed" for this generate is a std::string of decimal digits.

Examples
tabulate_normals.cpp.

Definition at line 26 of file table_gen.hpp.

Constructor & Destructor Documentation

◆ table_gen()

exrandom::table_gen::table_gen ( const std::string &  seed = "")
inline

The constructor.

Parameters
seedthe string of random digits.

Definition at line 33 of file table_gen.hpp.

Member Function Documentation

◆ seed()

void exrandom::table_gen::seed ( const std::string &  seed = "")
inline

Reset the seed.

Parameters
seedthe new string of random digits.
Examples
tabulate_normals.cpp.

Definition at line 39 of file table_gen.hpp.

◆ operator()()

uint_t exrandom::table_gen::operator() ( )
inline
Returns
the value of the next random digit.

If there are no more digits left, throw an exception.

Definition at line 45 of file table_gen.hpp.


The documentation for this class was generated from the following file: