I know rand function in php but what is mt_rand?
Enter your PHP question at the top of this page and click Get An Answer.
Tell us how quickly you want your PHP question answered.
Connect with your programmer via online chat or telephone call.
I know rand function in php but what is mt_rand?
mt_rand()
- Generate a better random value.
the function defination is:
int mt_rand ( void )
int mt_rand ( int $min , int $max )
you can use any one of them
example:
echo mt_rand() . "\n"; // output: ***-***-****
echo mt_rand(5, 15); //output: 6
anything more you want to know, please visit: http://php.net/manual/en/function.mt-rand.php
thank you.
Byron Narciso
Programmer
Whether you have a quick question while preparing your taxes, troubleshooting a computer problem, or need to hire an attorney, ExpertHelp is the most convenient and affordable way to connect with the right service professional to get the job done.
ExpertHelp has been in business since 2011, is an A+ Rated Better Business Bureau accredited member, and offers a 100% satisfaction guarantee on every question you ask!