Function NegativeBinomial(ProbabilityOfSuccess, NumberOfSuccesses)

# NegativeBinomial

The function NegativeBinomial draws a random value from a negative binomial distribution.

NegativeBinomial(
ProbabilityOfSuccess,   ! (input) numerical expression
NumberOfSuccesses       ! (input) integer expression
)


## Arguments

ProbabilityOfSuccess

A scalar numerical expression in the range $$(0,1)$$.

NumberOfSuccesses

A integer numerical expression $$> 0$$.

## Return Value

The function NegativeBinomial returns a random value drawn from a negative binomial distribution with probability ProbabilityOfSuccess and number of successes NumberOfSuccesses.

See also

The NegativeBinomial distribution is discussed in full detail in Discrete Distributions of the Language Reference.