A
negative_binomial_distribution random number distribution
produces random integers
i ≥ 0
distributed according to
the discrete probability function in Formula
29.7. P(i|k,p)=(k+i−1i)⋅pk⋅(1−p)i(29.7)
[
Note 1:
This implies that
P(i | k,p) is undefined when
p == 1. —
end note]