Internal function that samples z's from a multinomial distribution

rmultinom2(prob, n, randu, nmaxclust)

Arguments

prob

A numeric vector.

n

An integer.

randu

A numeric vector.

nmaxclust

An integer.