导航首页 »  技术教程 »  PHP:getrandmax()的用法_Math函数
PHP:getrandmax()的用法_Math函数 998 2024-01-01   

getrandmax

(PHP 4, PHP 5)

getrandmax — 显示随机数最大的可能值

说明

int getrandmax ( void )

返回调用 rand() 可能返回的最大值。

返回值

rand() 返回 随机数可能返回的最大值

参见

rand() - 产生一个随机整数 srand() - 播下随机数发生器种子 mt_getrandmax() - 显示随机数的最大可能值



文章评论 (0条)
发表评论
暂无评论,快来抢沙发吧~