41 double randomGaussian(
double mean,
double var, boost::mt19937& gen)
47 boost::normal_distribution<> dst(mean, sqrt(var));
48 boost::variate_generator<
50 boost::normal_distribution<> > rand(gen, dst);
55 double randomUniform(
double min,
double max, boost::mt19937& gen)
58 double amin = std::min(min, max);
59 double amax = std::max(min, max);
60 boost::uniform_real<> dst(amin, amax);
61 boost::variate_generator<
63 boost::uniform_real<> > rand(gen, dst);