fixed randomWeightedInt to return the selected int, not the index