The multivariate hypergeometric distribution is generalization of hypergeometric distribution. It is used for sampling without replacement k out of N marbles in m colors, where each of the colors appears n[i] times. Where k=sum(x), N=sum(n) and k<=N.
Examples
# Generating 10 random draws from multivariate hypergeometric# distribution parametrized using a vectorrmvhyper(10, c(10,12,5,8,11),33)
References
Gentle, J.E. (2006). Random number generation and Monte Carlo methods. Springer.