rng v0.2 for bernoulli distribution