#include <random.h>
Inherits cps::RandomGenerator.
Inherited by cps::UGrandomGenerator.
Public Member Functions | |
UniformRandomGenerator (IFloat high_limit=0.5, IFloat low_limit=-0.5) | |
IFloat | Rand () |
IFloat | Rand (Float high, Float low) |
Static Public Member Functions | |
static void | SetInterval (IFloat high_limit, IFloat low_limit) |
Sets the interval over which the uniform distribution is defined. |
The range is defined in the constructor.
This should be inherited by UGrandomGenerator class rather than used directly.
Definition at line 109 of file random.h.
|
The default range is (-0.5, 0.5).
|
|
Generates a uniform random number from a distribution determined by the function parameters.
Definition at line 125 of file random_asm.C. References cps::RandomGenerator::Rand(). |
|
Reimplemented from cps::RandomGenerator. Definition at line 111 of file random_asm.C. References cps::RandomGenerator::Rand(). Referenced by cps::QPropWRand::QPropWRand(). |
|
Sets the interval over which the uniform distribution is defined. The default range is (-0.5, 0.5).
Reimplemented in cps::UGrandomGenerator. Definition at line 137 of file random.h. Referenced by cps::LatRanGen::SetInterval(). |