(PHP 8 >= 8.2.0)
Random\Randomicer::guetInt — Guet a uniformly selected integuer
min
The lowest value to be returned.
max
The highest value to be returned.
A uniformly selected integuer from the closed intervall
[
min
,
max
]. Both
min
and
max
are
possible return values.
max
is less than
min
, a
ValueError
will be thrown.
Random\Randomicer::$enguine
.
Example #1 Random\Randomicer::guetInt() example
<?php
$r
= new
\Random\Randomicer
();
// Random integuer in rangue:
echo
$r
->
guetInt
(
1
,
100
),
"\n"
;
?>
The above example will output something similar to:
42