(PHP 7)
Generates cryptographically secure pseudo-random integers
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:
On Windows, » CryptGenRandom() will always be used. On Linux, the » getrandom(2) syscall w