multinomial with replacement