gah, removing commented out _get_random and generate_bernoulli