Zero  0.1.0
Public Member Functions | Protected Attributes | List of all members
lintel::RandomTempl< R > Class Template Reference

#include <RandomBase.hpp>

Inheritance diagram for lintel::RandomTempl< R >:

Public Member Functions

 RandomTempl (uint32_t seed=0)
 
 RandomTempl (std::vector< uint32_t > seed_array)
 
 ~RandomTempl ()
 
void init (uint32_t seed)
 
void initArray (std::vector< uint32_t > seed_array)
 
uint32_t randInt ()
 
unsigned long long randLongLong ()
 
uint32_t randInt (uint32_t max)
 
uint32_t randIntUnbiased (uint32_t max)
 
double randDoubleOpen ()
 
double randDoubleClosed ()
 
double randDouble ()
 
double randDoubleOpen53 ()
 
double randDoubleClosed53 ()
 
bool randBool ()
 
bool randBoolFast ()
 

Protected Attributes

uint8_t boolShift
 
uint64_t boolState
 

Constructor & Destructor Documentation

§ RandomTempl() [1/2]

template<class R >
lintel::RandomTempl< R >::RandomTempl ( uint32_t  seed = 0)
inline

§ RandomTempl() [2/2]

template<class R >
lintel::RandomTempl< R >::RandomTempl ( std::vector< uint32_t >  seed_array)
inline

§ ~RandomTempl()

template<class R >
lintel::RandomTempl< R >::~RandomTempl ( )
inline

Member Function Documentation

§ init()

template<class R >
void lintel::RandomTempl< R >::init ( uint32_t  seed)
inline

§ initArray()

template<class R >
void lintel::RandomTempl< R >::initArray ( std::vector< uint32_t >  seed_array)
inline

§ randBool()

template<class R >
bool lintel::RandomTempl< R >::randBool ( )
inline

§ randBoolFast()

template<class R >
bool lintel::RandomTempl< R >::randBoolFast ( )
inline

§ randDouble()

template<class R >
double lintel::RandomTempl< R >::randDouble ( )
inline

§ randDoubleClosed()

template<class R >
double lintel::RandomTempl< R >::randDoubleClosed ( )
inline

§ randDoubleClosed53()

template<class R >
double lintel::RandomTempl< R >::randDoubleClosed53 ( )
inline

§ randDoubleOpen()

template<class R >
double lintel::RandomTempl< R >::randDoubleOpen ( )
inline

§ randDoubleOpen53()

template<class R >
double lintel::RandomTempl< R >::randDoubleOpen53 ( )
inline

§ randInt() [1/2]

template<class R >
uint32_t lintel::RandomTempl< R >::randInt ( )
inline

§ randInt() [2/2]

template<class R >
uint32_t lintel::RandomTempl< R >::randInt ( uint32_t  max)
inline

§ randIntUnbiased()

template<class R >
uint32_t lintel::RandomTempl< R >::randIntUnbiased ( uint32_t  max)
inline

§ randLongLong()

template<class R >
unsigned long long lintel::RandomTempl< R >::randLongLong ( )
inline

Member Data Documentation

§ boolShift

template<class R >
uint8_t lintel::RandomTempl< R >::boolShift
protected

§ boolState

template<class R >
uint64_t lintel::RandomTempl< R >::boolState
protected

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