HoverRace  2.0
Public Member Functions | Private Attributes | List of all members
HoverRace::Util::RandomInt< T > Class Template Reference

Ranged pseudo-random number generator. More...

#include <Random.h>

Public Member Functions

 RandomInt (T min, T max)
 
operator() ()
 

Private Attributes

std::uniform_int_distribution< T > dist
 
RandSourcesrc
 

Detailed Description

template<class T>
class HoverRace::Util::RandomInt< T >

Ranged pseudo-random number generator.

Each instance of this generator is safe to use in a single thread, but may not be shared between threads.

Author
Michael Imamura

Constructor & Destructor Documentation

template<class T >
HoverRace::Util::RandomInt< T >::RandomInt ( min,
max 
)
inline

Member Function Documentation

template<class T >
T HoverRace::Util::RandomInt< T >::operator() ( )
inline

Member Data Documentation

template<class T >
std::uniform_int_distribution<T> HoverRace::Util::RandomInt< T >::dist
private
template<class T >
RandSource& HoverRace::Util::RandomInt< T >::src
private

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