#include <SIM_Random.h>
This class defines a bunch of useful tools for random number generation. It is designed to be attached as subdata to objects or solvers that need a stream of random numbers.
Definition at line 17 of file SIM_Random.h.
Returns true with the givent probability. < 0 always false,
1 always true.
Returns a random integer from [0..choices-1] 0 choices will return 0. Negative choices will go for [-choices+1..0]
Returns a random float from [0..1)
Returns a random float from [-.5...5)
Returns a number within the range [a..b] In the floating point case, the range is [a..b)
Sets the seed to the system.
Override this function to initialize the random number generator.
Implemented in SIM_RandomTwister.
Gets a random unsigned integer.
Override this function to implement a new random number generator.
Implemented in SIM_RandomTwister.