[inline]
Generate a Bernoulli distributed random variate.
This function returns a pseudo-random variate drawn from the Bernoulli distribution with probability of success p.