September 2001
Intermediate to advanced
768 pages
32h 45m
English
int getrandmax(void)
Returns the maximum random number possible, as defined by the system’s RAND_MAX value.
Returns:
Maximum random value
Description:
getrandmax() returns the maximum value that rand() can produce. This function is basically a utility function, but can have application when manipulating numbers produced by rand().
This function cannot fail.
Version:
PHP 3, PHP 4
See also:
mt_getrandmax() mt_rand() mt_srand() rand() srand()
Example:
echo "Max value of rand() is: ", getrandmax(); |
Read now
Unlock full access