added chi square test to rng for bernoulli