int mt_rand ( int $min, int $max)
$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 )

Example 2 with $min and $max( value will change )

echo mt_rand(10,100); // Output is 32 

Subscribe to our YouTube Channel here


* indicates required
Subscribe to plus2net

    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 All rights reserved worldwide Privacy Policy Disclaimer