Get the latest tech news

Darts, Dice, and Coins: Sampling from a Discrete Distribution (2011)


Earlier this year, I asked a question on Stack Overflow about a data structure for loaded dice. Specifically, I was interested in answering this question: This data structure could be used for many purposes.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Dice

Dice

Photo of coins

coins

Photo of darts

darts

Related news:

News photo

I'm sorry, but you do not have enough coins for democracy

News photo

Tether to Distribute Coins on Conservative Video Platform Rumble

News photo

We finally got our first look at Battlefield 6's campaign, and it looks like a return to form for EA and Battlefield Studios