Random numbers from the binomial distribution (reject method)
Adapted from Press, Teukolsky, Vetterling and Flannery, Numerical Recipes in C p.220