Home »
MCQs »
PHP MCQs
What is the use of PHP mt_rand() function?
74. What is the use of PHP mt_rand() function?
- Generates a random number using the milliseconds time.
- Generates a random number using the microseconds time.
- Generates a random number using the milliseconds time.
- Generates a random number using the Mersenne Twister algorithm.
Answer: D) Generates a random number using the Mersenne Twister algorithm
Explanation:
The use of the mt_rand() function in PHP is to generate a random number using the Mersenne Twister algorithm.