powered by
rmulti.one(size, p)
rmultinom
rmulti.one(size=5, p=rep(1/10,10))
Run the code above in your browser using DataLab