CellModules
|
Provides random number generation utilities. More...
Go to the source code of this file.
Namespaces | |
namespace | Rand |
Functions | |
static std::uniform_real_distribution< double > | Rand::probaGen (0., 1.) |
@ignore More... | |
static void | Rand::initRandomSeed (int seed=clock()) |
Initializes the random seed. More... | |
static double | Rand::getProba () |
Generates a random probability between 0 and 1. More... | |
static double | Rand::getUniformDouble (double min, double max) |
Generates a random double in a uniform distribution. More... | |
static int | Rand::getUniformInt (int min, int max) |
Generates a random integer in a uniform distribution. More... | |
static double | Rand::getNormalDouble (double mean, double var) |
Generates a random double in a normal distribution. More... | |
static double | Rand::getExponentialDouble (double lambda) |
Generates a random double in an exponential distribution. More... | |
static double | Rand::getBoundedNormalDouble (double mean, double bound) |
Generates a random double in a bounded normal distribution. More... | |
static double | Rand::getLinearDouble (std::vector< std::pair< double, double > > values) |
Generates a random double in a piecewise linear distribution. More... | |
static double | Rand::getLogNormalDouble (double mu, double sigma2) |
Generates a random double in a log-normal distribution. More... | |
static double | Rand::getLogNormalDoubleMeanStd (double mean, double std) |
Generates a random double in a log-normal distribution using mean and standard deviation. More... | |
Provides random number generation utilities.
Definition in file RandomManager.hpp.