PHP 8.1.15 Released!

Random\Randomizer::nextInt

(PHP 8 >= 8.2.0)

Random\Randomizer::nextIntGet a positive integer

Description

public Random\Randomizer::nextInt(): int

Warning

This function is currently not documented; only its argument list is available.

Parameters

This function has no parameters.

Return Values

Examples

Example #1 Random\Randomizer::nextInt() example

<?php
$r
= new \Random\Randomizer();

// Random "next" integer:
echo $r->nextInt(), "\n";
?>

The above example will output something similar to:

8041689838856078718
add a note

User Contributed Notes

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