genbernoullidata function

Generating function for Bernoulli Data.