(PHP 8 >= 8.2.0)
Random\Randomizer::getInt — Get a uniformly selected integer
$min, int $max): int
本函数还未编写文档,仅有参数列表。
min
The lowest value to be returned; must be
PHP_INT_MIN or greater.
max
The highest value to be returned; must be
PHP_INT_MAX or less.
A uniformly selected integer from the closed interval
[min, max]. Both
min and max are
possible return values.
max is less than min, a
ValueError will be thrown.
Random\Randomizer::$engine 的
Random\Engine::generate() 方法抛出的任何 Throwable。
示例 #1 Random\Randomizer::getInt() example
<?php
/* ... */
?>
以上例程的输出类似于:
...