return value is >= min and <= max;