Question: what is mnrnd in matlab?
Answer: Description. r = mnrnd(n,p) returns random values r from the multinomial distribution with parameters n and p . n is a positive integer specifying the number of trials (sample size) for each multinomial outcome. p is a 1-by-k vector of multinomial probabilities, where k is the number of multinomial bins or categories.