public ValueType Sample() { var bernoulli = new BernoulliDistribution(_probability); return(bernoulli.Sample(rand)); }