PHP:mt_getrandmax()的用法_Math函数

技术教程2个月前发布 北陌
396 00

PHP:mt_getrandmax()的用法_Math函数

mt_getrandmax

(PHP 4, PHP 5)

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

说明

int mt_getrandmax
( void
)

返回调用
mt_rand() 所能返回的最大的随机数。

返回值

返回调用
mt_rand() 所能返回的最大的随机数。

范例

Example #1 计算一个随机浮点数

function

© 版权声明

相关文章

暂无评论

none
暂无评论...