In file EO++.h:

(x) template <class T> class Uniform

This class generates uniform random values of any type Uses the static class Random

Public Methods

T operator ()(void)
Generates a random T
Uniform(T _lower=0, T _higher=0)
Constructor
virtual ~Uniform()
Virtual destructor

Private Fields

vector <char> bitMask
Bit masks for every bit n an unsigned char
T higher
Higher value
T lower
Lower value
const unsigned char numBits
Number of bits in an unsigned char

Private Methods

unsigned char rChar(void)
Generates a random unsigned char

Documentation

This class generates uniform random values of any type Uses the static class Random. If you need a special seed, call Random::seed before this.
Uniform(T _lower=0, T _higher=0)
Constructor
Parameters:
_lower - Lower value
_higher - Higher value

virtual ~Uniform()
Virtual destructor

T operator ()(void)
Generates a random T

T lower
Lower value

T higher
Higher value

const unsigned char numBits
Number of bits in an unsigned char

vector <char> bitMask
Bit masks for every bit n an unsigned char

unsigned char rChar(void)
Generates a random unsigned char


This class has no child classes.

alphabetic index hierarchy of classes


BinOp