CircleCoder
Pick an ID at Random in Proportion to Its Weight — Google interview question · CircleCoder