@param Point $min
@param Point $max

@return Point
4054
public function getRandomPoint(Point $min, Point $max)
    {
        $point = $this->newPoint(array_fill(0, $this->dimension, null));

        for ($n = 0; $n < $this->dimension; ++$n) {
            $point[$n] = random_int($min[$n], $max[$n]);
        }

        return $point;
    }
525251
protected static function _rand($min, $max)
    {
        if (version_compare(PHP_VERSION, '7.0.0', 'ge')) {
            $value = random_int($min, $max);
        } else {
            $value = mt_rand($min, $max);
        }

        return $value;
    }
1073775
public function havingBetween(string $column, int $min, int $max)
    {
        $this->hConditions()->between(...func_get_args());

        return $this;
    }
1199306
function range($min = null, $max = null)
	{
		$this->min($min);
		$this->max($max);
		return $this;
	}
805226
public function setIDRange($min, $max)
    {
        assert(is_numeric($min));
        assert(is_numeric($max));
        assert($min <= $max);
        $this->_min_id = $min;
        $this->_max_id = $max;

        return $this;
    }
279426
public static function range($min = 0, $max = -1)
    {
        for ($i = $min; $max < 0 || $i < $max; ++$i) {
            yield $i;
        }
    }
533197
public function clip(float $min, float $max) : self
    {
        if ($min > $max) {
            throw new InvalidArgumentException('Minimum cannot be'
                . ' greater than maximum.');
        }

        $b = [];

        foreach ($this->a as $row) {
            $temp = [];

            foreach ($row as $value) {
                if ($value > $max) {
                    $temp[] = $max;

                    continue 1;
                }

                if ($value < $min) {
                    $temp[] = $min;

                    continue 1;
                }

                $temp[] = $value;
            }

            $b[] = $temp;
        }

        return self::quick($b);
    }
875463
public function whereDateBetween($field, $min, $max)
    {
        foreach ($this->queries as $query) {
            $query->whereDateBetween($field, $min, $max);
        }

        return $this;
    }
544648
public function zRemRangeByScore($key, $min, $max) {
        return $this->getHandler($this->judge(__FUNCTION__))->zRemRangeByScore($key, $min, $max);
    }
215855
public function deleteByRank(int $min, int $max): int
    {
        return $this->handle->zRemRangeByRank($this->name, $min , $max );
    }
207153
public function vLimit(Int $min = 0, Int $max = NULL)
    {
        $key['minchar'] = [':p1' => $min];
        $typ['minchar'] = $min;

        if( $max !== NULL )
        {
            $key['maxchar'] = [':p1' => $max];
            $typ['maxchar'] = $max;
        }

        return $this->onInvalidEventPattern('.{' . $min . ',' . $max . '}', $key, [], $typ);
    }
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;
  }
683738
public function between($min, $max)
    {
        $this->doCheck(function ($value) use ($min, $max) {
            $this->throwExceptionIfFalse(
                $this->isBetween($value, $min, $max),
                'Failed assertion that %s is between %s and %s', $value, $min, $max
            );
        });

        return $this;
    }
386631
public function setAutoSize($max, $min = 1)
    {
        $this->autoSize = [
            'minRows' => intval($min),
            'maxRows' => intval($max),
        ];

        return $this;
    }
83714
public static function linspace($min, $max, $num = 50, $endpoint = true)
    {
        $range = $max - $min;

        if ($max == $min) {
            throw new \InvalidArgumentException(sprintf(
                'Min and max cannot be the same number: %s', $max
            ));
        }

        $unit = $range / ($endpoint ? $num - 1 : $num);
        $space = [];

        for ($value = $min; $value <= $max; $value += $unit) {
            $space[] = $value;
        }

        if ($endpoint === false) {
            array_pop($space);
        }

        return $space;
    }
1204232
public function generate($min = 0,$max = null)
    {
        if($max === null) {
            $max = $this->max;
        }
        
        if($min === null) {
            $min = $this->min;
        }
        
        
        return rand($min,$max);
    }
1215465
public function getRand($min = 0, $max = 0x7fffffff)
    {
        $t = ($this->x ^ ($this->x << 11)) & 0x7fffffff;
        $this->x = $this->y;
        $this->y = $this->z;
        $this->z = $this->w;
        $this->w = ( $this->w ^ ($this->w >> 19) ^ ( $t ^ ( $t >> 8 )) );
        return $this->w % ($max - $min + 1) + $min;
    }