dhyper(q, m, n, k) phyper(q, m, n, k) qhyper(p, m, n, k) rhyper(nn, m, n, k)
Johnson, N. L. and Kotz, S. (1970). Discrete Univariate Distributions, vol. 2. Houghton-Mifflin, Boston, MA.
cumsum(dhyper(0:5,4,6,7)) # cumulative distribution function phyper(0:5,4,6,7 # samethingrhyper(10,4,6,7) # 10 random samples dhyper(rep(3,3), m=c(5,8,12), n=4, k=4)