pbo#
Functions#
normal#
-
inline std::vector<double> ioh::common::random::pbo::normal(const size_t n, const long seed, const double lb = 0, const double ub = 1)#
Generates a vector of size n, containing random gaussian numbers.
- Parameters:
n – The size of the vector
seed – The seed to be used
lb – lower bound for the random numbers
ub – upper bound for the random numbers
- Returns:
A vector of random numbers
uniform#
-
inline std::vector<double> ioh::common::random::pbo::uniform(const size_t &n, long seed, const double lb = 0, const double ub = 1)#
Fills a rand_vec with n uniform random numbers, generated using in_seed.
- Parameters:
n – The size of rand_vec
seed – The random seed
lb – lower bound for the random numbers
ub – upper bound for the random numbers