random_int

random_int

(PHP 7)

random_intGenerates cryptographically secure pseudo-random integers

Description

int random_int ( int $min , int $max )

Generates cryptographic random integers that are suitable for use where unbiased results are critical, such as when shuffling a deck of cards for a poker game.

The sources of randomness used for this function are as follows: