Returns a randomly generated boolean according to the Bernoulli distribution
a randomly generated boolean