Menu Samaritan's Purse

RANDOM_INT

Generates cryptographically secure pseudo-random integers

SYNTAX

random_int ( int $min , int $max ) : int

PARAMETERS

min

The lowest value to be returned, which must be PHP_INT_MIN or higher.

max

The highest value to be returned, which must be less than or equal to PHP_INT_MAX.

RETURN

Returns a cryptographically secure random integer in the range min to max, inclusive.

EXAMPLES

1

7

2

-2691035938495978691

PHP