So why is it that the maxValue parameter is exclusive whilst the minValue is inclusive? This doesn't make sense. The max value should be the maximum value you would want returned but instead it is the minimum value of all values greater than the range you want returned. No matter how you look at it the maxValue parameter is not the maxValue of anything.