Hacker News new | ask | show | jobs
by jnordwick 2551 days ago
This looks to be the discrete random variable problem with the alias method:

https://en.wikipedia.org/wiki/Alias_method

but they don't seem to reduce each choice (1-10) to just two options.