rndnb#
Purpose#
Computes pseudo-random numbers with negative binomial distribution.
Format#
- x = rndnb(r, c, k, p)#
- Parameters:
r (scalar) – number of rows of resulting matrix.
c (scalar) – number of columns of resulting matrix.
k (MxN matrix) – ExE conformable with r x c resulting matrix, “event” parameters for negative binomial distribution.
p (KxL matrix) – ExE conformable with r x c resulting matrix, “probability” parameters for negative binomial distribution.
- Returns:
x (RxC matrix) – negative binomial distributed pseudo-random numbers.
Remarks#
The properties of the pseudo-random numbers in x are:

Source#
random.src