A more efficient way of doing weighted randomization – Medium | Hacker News Reader