September 2001
Intermediate to advanced
768 pages
32h 45m
English
int mt_getrandmax(void)
Returns the greatest value that can be returned by the mt_rand() function.
Returns:
Greatest random value that can be generated by the Mersenne Twister function
Description:
This function returns the maximum value that mt_rand() can return.
Version:
PHP 3 since 3.0.6, PHP 4
See also:
getrandmax() mt_rand() mt_srand() rand() srand()
Example:
echo "The largest value that mt_rand() can return with no arguments is ", mt_getrandmax(); |
Read now
Unlock full access