bern function

Bernoulli Distribution