- This program simulates a branching process with distribution for offspring
that you specify. The default distribution corresponds to example 10.9.
The program plots a number of simulations, with the x-axis indicating number of generations,
and y axis representing the number in the population.

When the population gets large the normal approximation is used.

The source.