Fast Sampling from a Discrete Distribution | Hacker News Reader