The MCFClass Project
|
Provide a common interface to the different random generators that are available in different platforms. More...
#include <OPTUtils.h>
Public Member Functions | |
OPTrand (void) | |
constructor of the class | |
double | rand (void) |
Returns a random number uniformly distributed in [0, 1). | |
void | srand (long seed) |
Seeds the random generator for this instance of OPTrand. | |
Provide a common interface to the different random generators that are available in different platforms.
|
inline |
Returns a random number uniformly distributed in [0, 1).
References OPTrand::rand(), and OPTrand::srand().
Referenced by OPTrand::rand().