Retrieve random items from a set according to each item's weight