CryptGenRandom function on Windows
CNG-API on Windows
GETRANDOM(2) on LINUX
<?php
int random_int ( int $min , int $max )
where,
$min = the minimum integer value
of the numeric interval
( must be PHP_INT_MIN or higher )
$max = the maximun integer value
of the numeric interval
( must be less than or equal to PHP_INT_MAX )
?>
<?php
// Run this code several times
// Always use the current version of PHP
$min = PHP_INT_MIN;
$max = PHP_INT_MAX;
$rndint = random_int ( $min , $max );
echo 'Random value generated at this moment:<br><br>' . $rndint . '<br>';
?>