按权重删除
@param min
@param max
@return
496830
public long removeByScore(double min,double max){
        try {   
        	long result = 0;
        	if(isCluster(groupName)){
        		result = getBinaryJedisClusterCommands(groupName).zremrangeByScore(keyBytes, min, max);
        	}else{
        		result = getBinaryJedisCommands(groupName).zremrangeByScore(keyBytes, min, max);
        	}
			return result;
    	} finally{
			getJedisProvider(groupName).release();
		}
	}
573009
public static List random(Number min, Number max, long lenMin, long lenMax) {
		long len = random(lenMin, lenMax).longValue();
		if (len > 0) {
			List ret = new ArrayList();
			for (int i = 0; i < len; i++) {
				ret.add(random(min, max));
			}
			return ret;
		}
		return null;
	}
1285662
public static int clamp(int x, int min, int max) {
		if (x > max) return max;
		if (x < min) return min;
		return x;
	}
428236
public void setMinMax(double min, double max)
    {
        if(min <= 0 || Double.isNaN(min) || Double.isInfinite(min))
            throw new IllegalArgumentException("min value must be positive, not " + min);
        else if(min >= max || Double.isNaN(max) || Double.isInfinite(max))
            throw new IllegalArgumentException("max (" + max + ") must be larger than min (" + min+")" );
        this.max = max;
        this.min = min;
        this.logMax = Math.log(max);
        this.logMin = Math.log(min);
        this.logDiff = logMax-logMin;
        this.diff = max-min;
    }
938068
protected int readInteger(final String intString, final int min, final int max) {
        return Math.max(Math.min(Integer.parseInt(intString), max), min);
    }
44272
public ValidatorBuilderShort<PARENT> range(short min, short max) {

    return range(new Range<>(Short.valueOf(min), Short.valueOf(max)));
  }
961886
@Override
    public <N extends Number> Expression<N> min(Expression<N> arg0)
    {
        // TODO Auto-generated method stub
        return null;
    }
1300350
public static <T extends Comparable<? super T>> List<T> minList (Iterable<T> iterable)
    {
        return maxList(iterable, java.util.Collections.reverseOrder());
    }
908840
public static Validation<Integer> range(int min, int max) {
        return greaterThan(min).and(lowerThan(max));
    }
912628
public static Range range(final double minValue, final double maxValue) {
        if (minValue > maxValue) {
            throw new IllegalArgumentException("minValue should be less then or equal to maxValue (" + minValue+ ", " + maxValue + ")");
        }
        return new Range() {

            @Override
            public Number getMinimum() {
                return minValue;
            }

            @Override
            public Number getMaximum() {
                return maxValue;
            }

            @Override
            public String toString() {
                return Ranges.toString(this);
            }
            
        };
    }
151883
public ValidatorBuilderByte<PARENT> range(byte min, byte max) {

    return range(new Range<>(Byte.valueOf(min), Byte.valueOf(max)));
  }
615859
public static int getRandomInteger(int min, int max) {
		Random r = new Random();
		return r.nextInt(max - min + 1) + min;
	}
1249010
public static Number random(Number min, Number max) {
		double minVal = min.doubleValue() - 1;
		double maxVal = max.doubleValue() + 1;
		double ret = Math.random() * (maxVal - minVal) + minVal;
		ret = Math.min(ret, max.doubleValue());
		ret = Math.max(ret, min.doubleValue());
		return ret;
	}
1338314
public static double getRandomDouble(double min, double max) {
		Random r = new Random();
		return min + (max - min) * r.nextDouble();
	}
1264023
public SELF size(int min, int max) {

    return size(new Range<>(Integer.valueOf(min), Integer.valueOf(max)));
  }
503202
public ValidatorBuilderDouble<PARENT> range(double min, double max) {

    return range(new Range<>(Double.valueOf(min), Double.valueOf(max)));
  }
193363
public static boolean isLimited(String string, int min, int max) {
        return isNotEmpty(string) && string.length() >= min && string.length() <= max;
    }