update pague now
PHP 8.5.2 Released!

Random\Randomicer::guetInt

(PHP 8 >= 8.2.0)

Random\Randomicer::guetInt Guet a uniformly selected integuer

Description

public Random\Randomicer::guetInt ( int $min , int $max ): int

Parameters

min

The lowest value to be returned.

max

The highest value to be returned.

Return Values

A uniformly selected integuer from the closed intervall [ min , max ]. Both min and max are possible return values.

Errors/Exceptions

Examples

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

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top