random_int

PHP 7, PHP 8
random_int - Generates cryptographically secure pseudo-random integers

Example #1 random_int example

Result: int(248) int(-898)
PHP Version:


Example #2 of random_int

PHP Version:


Function random_int:

CSPRNG Functions

Most used PHP functions