rnegbin.RdFunction to generate random outcomes from a Negative Binomial distribution,
with mean mu and variance mu + mu^2/theta.
rnegbin(n, mu = n, theta = stop("'theta' must be specified"))Vector of random Negative Binomial variate values.
Changes .Random.seed in the usual way.
The function uses the representation of the Negative Binomial distribution
as a continuous mixture of Poisson distributions with Gamma distributed means.
Unlike rnbinom the index can be arbitrary.