convenience function for resampling within a range of values i.e., if category is 10-20, then will select a value between 10 and 20.
selectInRange(rangeString)