Comment on Darts, Dice, and Coins: Sampling from a Discrete Distribution (2011)Comments−nayuki8yThe random sampling algorithms described on the page are very closely related to the technique of https://en.wikipedia.org/wiki/Arithmetic_coding in data compression.
Comments
The random sampling algorithms described on the page are very closely related to the technique of https://en.wikipedia.org/wiki/Arithmetic_coding in data compression.