good point! rand(Bernoulli(0.0f0)) should ALWAYS return false! I think the <= test should not be used in Bernoulli