e a tensor of samples from a multinomial distribution according to the probabilities of each of the possible outcomes.