(PHP 8 >= 8.2.0)
Random\Randomizer::nextInt — Get a positive integer
本函数还未编写文档,仅有参数列表。
此函数没有参数。
A positive integer between 0 and a maximum value depending on the number of bytes returned from Random\Engine::generate(). The exact maximum can be calculated as 2$engine_bytes * 8 - 1 - 1.
Random\Randomizer::$engine
的
Random\Engine::generate() 方法抛出的任何 Throwable。
示例 #1 Random\Randomizer::nextInt() example
<?php
$r = new \Random\Randomizer();
// Random "next" integer:
echo $r->nextInt(), "\n";
?>
以上示例的输出类似于:
8041689838856078718