mt_rand()
int mt_rand ( int $min, int $max)
Parameter | DESCRIPTION |
$min | Optional : Minimum range of random number to be generated. |
$max | Optional : Maximum range of random number to be generated. |
Output is a random value.
This function uses Mersenne Twister Random Number Generator.
Example 1
echo mt_rand();
Out put is ( will chage )
1116593529
Example 2 with $min and $max( value will change )
echo mt_rand(10,100); // Output is 32
← Subscribe to our Youtube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com
|