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