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