Create an rng object with np.random.default_rng(), you can seed it for reproducible results. You can draw samples from probability distributions, including from the binomial and normal distributions.
These are my go-to libraries for Python data crunching.
The binomial distribution models the number of successes in a fixed number of independent Bernoulli trials. It's characterized by two parameters: n (number of trials) and p (probability of success on ...
This repository contains Central Limit Theorem and Parameter Estimation, a Python and Jupyter Notebook implementation of numerical experiments on sampling distributions, the Central Limit Theorem, ...