This class produces the interface for a user-accesible uniform random variable
![]() | reset (float Mean, float SDev) Here is the required over-ride for the reset() interface function |
![]() | sample (void) Here is the required over-ride for the sample() interface function |
![]() | seed (long Seed) Returns a value in the range 0 to 1 |
![]() | set_min_max (float Min, float Max) Set the distribution end points |
![]() | uniform_rv (float Min = 1e-30, float Max = 1 - 1e-30) We only a need a single constructor. |
![]() | use_FSULTRA (void) Select the FSULTRA unit-uniform random number generator |
![]() | use_MT19937B (void) Select Matsumoto's MERSENNE TWISTER unit-uniform random number generator |
This class produces the interface for a user-accesible uniform random variable. The class contains a pointer to a unit_uniform_rv object, plus instances of each type of specific unit_uniform_rv (child classes derived from unit_uniform_rv). Configuring use of any specific type requires a member function call. The default constructor produces a uniform random variable over (0, 0.99999999999999) But the object can be configured to have any endpoints representable by single precision floating point.
void reset(float Mean, float SDev)
void set_min_max(float Min, float Max)
generated by doc++