Pergunta de entrevista da empresa Yelp

Pick a random number from weighted list based on weight