alaCarte Maps
Renderer for OpenStreetMap tiles
Random Class Reference

#include <random.hpp>

Public Member Functions

 Random ()
 
 Random (unsigned long _init)
 
 ~Random ()
 
void next ()
 
template<typename T >
rand ()
 
int rand ()
 
template<typename T >
rand (T _max)
 
template<typename T >
rand (T _min, T _max)
 

Static Public Member Functions

static void Next ()
 
template<typename T >
static T Rand ()
 
static int Rand ()
 
template<typename T >
static T Rand (T _max)
 
template<typename T >
static T Rand (T _min, T _max)
 

Private Attributes

unsigned long m_RandomSeed
 

Static Private Attributes

static Random m_RandomGenerator
 

Detailed Description

Definition at line 8 of file random.hpp.

Constructor & Destructor Documentation

Random::Random ( )

Definition at line 11 of file random.cpp.

Random::Random ( unsigned long  _init)

Definition at line 22 of file random.cpp.

Random::~Random ( )

Definition at line 27 of file random.cpp.

Member Function Documentation

void Random::next ( )

Definition at line 32 of file random.cpp.

void Random::Next ( )
inlinestatic

Definition at line 68 of file random.hpp.

template<typename T >
T Random::rand ( )
inline

Definition at line 43 of file random.hpp.

int Random::rand ( )
inline

Definition at line 49 of file random.hpp.

template<typename T >
T Random::rand ( _max)
inline

Definition at line 55 of file random.hpp.

template<typename T >
T Random::rand ( _min,
_max 
)
inline

Definition at line 61 of file random.hpp.

template<typename T >
T Random::Rand ( )
inlinestatic

Definition at line 74 of file random.hpp.

int Random::Rand ( )
inlinestatic

Definition at line 79 of file random.hpp.

template<typename T >
T Random::Rand ( _max)
inlinestatic

Definition at line 85 of file random.hpp.

template<typename T >
T Random::Rand ( _min,
_max 
)
inlinestatic

Definition at line 91 of file random.hpp.

Member Data Documentation

Random Random::m_RandomGenerator
staticprivate

Definition at line 37 of file random.hpp.

unsigned long Random::m_RandomSeed
private

Definition at line 38 of file random.hpp.


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