Intuitive Random Selection (with Marc LeBlanc)
Molly Rocket · 37:52 · Watch on YouTube
Picking a random valid item from a stream is best done without reservoir sampling's counter-and-die logic — just assign each valid item a random score and keep the highest, which is equally fair but far more readable...