revising bernoulli and binomial generators