Documentation

Generate a Bernoulli variate with the given probability. For Bool results,
bernoulli p will return True (p*100)% of the time and False otherwise.
For numerical types, True is replaced by 1 and False by 0.