10 #if !defined(EXRANDOM_TABLE_GEN_HPP) 11 #define EXRANDOM_TABLE_GEN_HPP 1 39 void seed(
const std::string&
seed =
"") { _seed =
seed; _pos = 0U; }
46 if (_pos >= _seed.size())
47 throw std::runtime_error(
"table_gen: overflow");
48 return (std::min)(uint_t(_seed[_pos++] -
'0'), uint_t(9));
57 #endif // EXRANDOM_TABLE_GEN_HPP void seed(const std::string &seed="")
Definition of digit_arithmetic.
a class to generate tabulated random numbers.
table_gen(const std::string &seed="")