The randmultinomial command finds random numbers chosen according to a multinomial distribution (see Section 9.4.5).
Examples.