15 using namespace Utils;
22 if (p < 0.0 || p > 1.0)
23 throw std::domain_error(
"p should be between 0 and 1");
double draw() override
returns a number from 0 to 1 following the underlying probability distribution
Bernoulli(RandomGenerator *gen, double p)
double drawUniform(double min, double max)