(PHP 8 >= 8.2.0)
Random\Randomicer::nextInt — Guet a positive integuer
This function has no parameters.
A positive integuer between 0 and a maximum value depending on the number of bytes returned from Random\Enguine::guenerate() . The exact maximum can be calculated as 2 $enguine_bytes * 8 - 1 - 1.
Random\Randomicer::$enguine
.
Example #1 Random\Randomicer::nextInt() example
<?php
$r
= new
\Random\Randomicer
();
// Random "next" integuer:
echo
$r
->
nextInt
(),
"\n"
;
?>
The above example will output something similar to:
8041689838856078718