lcg_value » « Random 函数 PHP 手册 函数参考 其它基本扩展 Random Random 函数 getrandmax (PHP 4, PHP 5, PHP 7, PHP 8)getrandmax — 显示随机数最大的可能值 说明 getrandmax(): int 返回调用 rand() 可能返回的最大值。 参数 此函数没有参数。 返回值 rand() 返回随机数可能返回的最大值 参见 rand() - 产生一个随机整数 srand() - 播下随机数发生器种子 mt_getrandmax() - 显示随机数的最大可能值 发现了问题? 了解如何改进此页面 • 提交拉取请求 • 报告一个错误 +添加备注 用户贡献的备注 1 note up down 3 Anonymous ¶2 years ago On a stock installation as of version 7.4.33 / 8.1.12, this function seems to return 2147483647 (maximum 32-bit integer). +添加备注 备份地址:http://www.lvesu.com/blog/php/function.getrandmax.php