RandomState.negative_binomial(n, p, size=None)
Draw samples from a negative binomial distribution. Samples are drawn from a negative binomial distribution with specified parameters, n trials and p probability of success where n is an integer > 0 and p is in the interval [0, 1]. Parameters:
n : int Parameter, > 0. p : float Parameter, >= 0 and <=1. size : int or tuple of ints, optional Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. D