mt_rand()

int mt_rand ( int $min, int $max)
ParameterDESCRIPTION
$minOptional : Minimum range of random number to be generated.
$maxOptional : 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


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com




    Post your comments , suggestion , error , requirements etc here .




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2023 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer