Number of values to generate (fractions are truncated, as in R).
Number of objects distributed into the K categories in each draw (fractions are truncated, as in R).
Category weights of length K. They need not sum to 1 (they are divided by their sum).
An array of n arrays, each of length K and summing to the truncated size.
Random vectors from the multinomial distribution. Equivalent to R's
rmultinom().Unlike R, which returns a K x n matrix with one draw per column, this returns
nrows with one draw per row (the transpose of R's result). The random stream is the same as R's.