numpy.random.negative_binomial

numpy.random.negative_binomial(n, p, size=None)
Negative Binomial distribution.