#include <Random.h>
Public Member Functions | |
Random (Integer a=16807, Integer b=0, Integer c=Musimat_Random_Seed) | |
Default constructor. Initialization constants from Park and Miller. | |
Integer | lCRandom () |
Linear congruential method of random number generation. See Knuth, "Seminumerical Methods". | |
Real | random (Real L, Real U) |
Return a random value as a Real within a range of Reals. | |
Integer | random (Integer L, Integer U) |
Return a random value as a Real within a range of Reals. | |
Integer | seed (Integer s) |
Return old random seed, set new seed. | |
Integer | getTime () |
Return number of seconds since epoch. |
Definition at line 32 of file Random.h.
Random::Random | ( | Integer | a = 16807 , |
Integer | b = 0 , |
||
Integer | c = Musimat_Random_Seed |
||
) | [inline] |
Integer Random::getTime | ( | ) |
Integer Random::lCRandom | ( | ) | [inline] |
Linear congruential method of random number generation. See Knuth, "Seminumerical Methods".
Definition at line 40 of file Random.h.
Referenced by LCRandom(), and random().
Return a random value as a Real within a range of Reals.
L | Lower bound |
U | Upper bound |
Definition at line 52 of file Random.h.
References lCRandom(), and Return.