int mt_rand ( [int min, int max] ) returns random numbers, similar to the rand( ).
It uses the Mersenne Twister algorithm to generate "better" random numbers (i.e., more random), and is often preferred.
<?
$mtrand = mt_rand( );
$mtrandrange = mt_rand(1,100);
?>
Related examples in the same category