从有序集合中移除指定score范围内的成员

@param string $key key
@param int $min 起始score （包含）
@param int $max 截止score （包含）
@return mixed
544648
public function zRemRangeByScore($key, $min, $max) {
        return $this->getHandler($this->judge(__FUNCTION__))->zRemRangeByScore($key, $min, $max);
    }
1334510
public function rule_between_num( $key, $value, $min, $max )
	{
		if ( !$this->rule_min_num( $key, $value, $min ) )
		{
			return false;
		}
		if ( !$this->rule_max_num( $key, $value, $max ) )
		{
			return false;
		}
		return true;
	}
215855
public function deleteByRank(int $min, int $max): int
    {
        return $this->handle->zRemRangeByRank($this->name, $min , $max );
    }
856432
function max($key = null) {
        if($key !== null) {
            $data = \array_column($this->data, $key);
        } else {
            $data = $this->data;
        }
        
        return \max($data);
    }
912384
private function isValidResult($number, $min, $max)
    {
        return is_int($number) && $number >= $min && $number <= $max;
    }
363183
public function getRandomNumber($min = -1, $max = -1) {
		if ($this->nextRandomNumber >= 0 && $this->nextRandomNumber >= ($min == -1 ? 0 : $min) && $this->nextRandomNumber <= ($max == -1 ? $this->getMaxRandomNumber() : $max)) {
			$rand = $this->nextRandomNumber;
			$this->nextRandomNumber = -1;

			return $rand;
		}

		return $this->realRandom->getRandomNumber($min, $max);
	}
1075220
public function rand($min = 0, $max = 0)
	{
		if (!$max)
			$max = getrandmax();

		return $this->registry()->isRegistered(self::REGISTRY_RAND)
			? $this->lookup(self::REGISTRY_RAND)
			: rand($min, $max);
	}
201572
public function zRevRangeByLex($key, $min, $max, $offset = null, $count = null) {
        return $this->_zRangeByLex('zrevrangebylex', $key, $min, $max, $offset, $count);
    }
1043431
public function int($min, $max) {
    $delta = $max-$min;
    $bytes = ceil($delta/256);
    $rnd = $this->bytes($bytes);
    $add = 0;
    for ($i = 0; $i < $bytes; $i++) {
      $add += ord($rnd[$i]);
    }
    $add = $add % ($delta + 1);
    return $min + $add;
  }
1360336
public function orWhereBetween(string $key, int $min, int $max): QueryBuilder
    {
        $values = ['min' => $min, 'max' => $max];
        $this->addWhere($key, 'BETWEEN', $values, 'OR');
        return$this;
    }
1173727
public static function generateRandomInt($min, $max)
    {
        $range = $max - $min;
        $bits = $bytes = $mask = $val = 0;
        while ($range > 0) {
            if ($bits % 8 === 0) {
               ++$bytes;
            }
            ++$bits;
            $range >>= 1;
            $mask = $mask << 1 | 1;
        }
        $valueShift = $min;

        do {
            if ($attempts > 128) {
                throw new \Exception('Could not generate valid random integer');
            }
            $randomByteString = self::generateCryptoKey($bytes);

            $val = 0;
            for ($i = 0; $i < $bytes; ++$i) {
                $val |= ord($randomByteString[$i]) << ($i * 8);
            }

            $val &= $mask;
            $val += $valueShift;

            ++$attempts;

        } while (!is_int($val) || $val > $max || $val < $min);

        return (int) $val;
    }
197710
public function get_min_max_score() {
        if (!$this->is_form_available()) {
            return null;
        }
        $returnvalue = array('minscore' => 0, 'maxscore' => 0);
        foreach ($this->get_definition()->rubric_criteria as $id => $criterion) {
            $scores = array();
            foreach ($criterion['levels'] as $level) {
                $scores[] = $level['score'];
            }
            sort($scores);
            $returnvalue['minscore'] += $scores[0];
            $returnvalue['maxscore'] += $scores[sizeof($scores)-1];
        }
        return $returnvalue;
    }
1286264
public function min($key)
	{
		return $this->reduce(function($result, $item) use ($key)
		{
			return is_null($result) || $item->{$key} < $result ? $item->{$key} : $result;
		});
	}
1356664
public function setMinMax($min,$max=null)
    {
       $this->min = $min; 
       $this->max = $max; 
    }
970070
public static function between($min, $max): Compare
    {
        $value = $min > $max ? [$max, $min] : [$min, $max];
        return new Compare('bt', $value);
    }
967220
public Long zcount(Object key, double min, double max) {
		Jedis jedis = getJedis();
		try {
			return jedis.zcount(keyToBytes(key), min, max);
		}
		finally {close(jedis);}
	}
171385
public function max($key)
    {
        return $this->reduce(function($result, $item) use ($key)
        {
            return (is_null($result) || $item->{$key} > $result) ? $item->{$key} : $result;
        });
    }