#include <randomop.h>
mcl::RandomGenerator::RandomGenerator |
( |
| ) |
|
mcl::RandomGenerator::RandomGenerator |
( |
unsigned int |
seed | ) |
|
std::vector< Real > mcl::RandomGenerator::Rand |
( |
const Int |
size | ) |
|
Returns a vector containing pseudorandom values drawn from the uniform distribution. Equivalent to Matlab's rand(size,1);
Real mcl::RandomGenerator::Rand |
( |
| ) |
|
|
inline |
Returns a single pseudorandom value drawn from the uniform distribution. Equivalent to Matlab's rand(1,1);
Int mcl::RandomGenerator::RandInt |
( |
const Int & |
minimum, |
|
|
const Int & |
maximum |
|
) |
| |
Returns a single pseudorandom integer value, uniformly distributed between the given extrema (which are included).
std::vector< Real > mcl::RandomGenerator::Randn |
( |
const Int |
size | ) |
|
Returns a vector containing pseudorandom values drawn from the standard normal distribution. Equivalent to Matlab's randn(size,1);
void mcl::RandomGenerator::SetSeed |
( |
unsigned int |
seed | ) |
|
|
inline |
Set seed of the for random generator
bool mcl::RandomGenerator::Test |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following files: