Value

For rmultinom(),
an integer K x n matrix where each column is a random vector
generated according to the desired multinomial law, and hence summing
to size. Whereas the transposed result would seem more
natural at first, the returned matrix is more efficient because of
columnwise storage.

Note

dmultinom is currently not vectorized at all and has
no C interface (API); this may be amended in the future.