在线文档教程
PHP
数学 | Mathematics

getrandmax

getrandmax

(PHP 4, PHP 5, PHP 7)

getrandmax — Show largest possible random value

Description

int getrandmax ( void )

Returns the maximum value that can be returned by a call to rand().

Return Values

The largest possible random value returned by rand()

See Also

  • rand() - Generate a random integer

  • srand() - Seed the random number generator

  • mt_getrandmax() - Show largest possible random value

← fmod

hexdec →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/function.getrandmax.php