Ruby library to sample from a weighted distribution of objects.