Darts, dice, and coins: sampling from a discrete distribution | Dark Hacker News