File boost_random_number_generator.hpp

template<typename RNGType, typename NT, int... Ts>
struct BoostRandomNumberGenerator
#include <boost_random_number_generator.hpp>

Random numbers generator

Template Parameters:
  • RNGType

  • NT

  • Ts

template<typename RNGType, typename NT>
struct BoostRandomNumberGenerator<RNGType, NT>

Public Functions

inline BoostRandomNumberGenerator(int d)
inline NT sample_urdist()
inline NT sample_uidist()
inline NT sample_ndist()
inline void set_seed(unsigned rng_seed)

Private Members

RNGType _rng
boost::random::uniform_real_distribution<NT> _urdist
boost::random::uniform_int_distribution _uidist
boost::random::normal_distribution<NT> _ndist
template<typename RNGType, typename NT, int Seed>
struct BoostRandomNumberGenerator<RNGType, NT, Seed>

Public Functions

inline BoostRandomNumberGenerator(int d = 1)
inline NT sample_urdist()
inline NT sample_uidist()
inline NT sample_ndist()
inline void set_seed(unsigned rng_seed)

Private Members

RNGType _rng
boost::random::uniform_real_distribution<NT> _urdist
boost::random::uniform_int_distribution _uidist
boost::random::normal_distribution<NT> _ndist