Bernoulli function

Create a Bernoulli distribution