Tell me the function of generating random numbers on php .
|
2 answers
if on php then mt_rand(1,n);
- 2
rand(1,n);is also possiblerand(1,n);- Michael Nikolaev
|
rand($min, $max);//где $min - минимальное, $max максимальное - 3@AlexWindHope and what is the difference between rand (1, n) and mt_rand (1, n); - Michael Nikolaev
- onephp.net to help, I’m not a reference book ... <br> Shortly - mt_rand works a little faster (slightly) and rand is more beautifully written :) <br> If it’s clever, it’s well written <a href = " groups.google.com/ group / fido7.ru.php.chainik / browse_thread / ... > - Zowie
|