Image Component Library (ICL)
|
lightweight Random generator class for uniform random distributions More...
#include <Random.h>
Public Member Functions | |
URand () | |
Range [0,1]. | |
URand (icl64f min, icl64f max) | |
Given range. | |
URand (const Range64f &range) | |
Given range. | |
operator icl64f () const | |
returns random(this->min,this->max) | |
Private Attributes | |
Range64f | range |
lightweight Random generator class for uniform random distributions
URand obeject can be used like 'normal double values'. Each time some other variable is assigned by it, it returns a random value. By this means, e.g. STL-containers can be filled/created with random numbers
But do not try to fill an Image with random numbers like this:
Here: URand is only evaluatet at the function interface, so the image is filled with a single random value;
icl::utils::URand::URand | ( | ) | [inline] |
Range [0,1].
icl::utils::URand::URand | ( | icl64f | min, |
icl64f | max | ||
) | [inline] |
Given range.
icl::utils::URand::URand | ( | const Range64f & | range | ) | [inline] |
Given range.
icl::utils::URand::operator icl64f | ( | ) | const [inline] |
returns random(this->min,this->max)
Range64f icl::utils::URand::range [private] |