All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Random Class Reference Random numbers.Class Random provides random Real variables, i.e. a value variable that gives another value each time it is accessed. It may be used just like an ordinary Real by means of an overloaded cast operator Real()%. More...
Detailed DescriptionRandom numbers. Class Random provides random Real variables, i.e. a value variable that gives another value each time it is accessed. It may be used just like an ordinary Real by means of an overloaded cast operator Real()%. Constructor & Destructor Documentationdefault constructor. Constructs a new (pseudo) Random variable returning values between Definition at line 147 of file random.h. References Random::isConsistent(), and Random::setSeed(). Member Function Documentation
consistency check. Definition at line 128 of file random.h. References Random::themax, and Random::themin. Referenced by Random::Random().
returns last random number or seed for next one. Definition at line 95 of file random.h. References Random::last_random(), Random::themax, and Random::themin.
returns the last used random value in [0,1). Definition at line 61 of file random.h. References Random::next, RDIVIDE, and RMULT. Referenced by Random::last(), and Random::next_random().
returns upper bound of random numbers. Definition at line 79 of file random.h. References Random::themax.
returns lower bound of random numbers. Definition at line 74 of file random.h. References Random::themin.
increases rand seed and returns a pseudo random Real value in [0,1). Definition at line 54 of file random.h. References Random::last_random(), Random::next, RADD, and RSTEP. Referenced by Random::operator Real().
returns next random number. When a Random variable is used where a Real value is expected, a new random number within the range specified in the constructor is retured. Definition at line 89 of file random.h. References Random::next_random(), Random::themax, and Random::themin.
resets upper bound for random numbers. Definition at line 111 of file random.h. References Random::themax.
resets lower bound for random numbers. Definition at line 105 of file random.h. References Random::themin.
resets seed for next random number. Definition at line 117 of file random.h. References Random::next, RDIVIDE, RMULT, Random::themax, and Random::themin. Referenced by Random::Random(). Member Data Documentation
random seed. Definition at line 47 of file random.h. Referenced by Random::last_random(), Random::next_random(), and Random::setSeed().
maximum random number to be returned Definition at line 46 of file random.h. Referenced by Random::isConsistent(), Random::last(), Random::max(), Random::operator Real(), Random::setMax(), and Random::setSeed().
minimum random number to be returned Definition at line 45 of file random.h. Referenced by Random::isConsistent(), Random::last(), Random::min(), Random::operator Real(), Random::setMin(), and Random::setSeed().
|