Pregunta de entrevista de Uber

Write a function that returns values randomly, according to their weight.