开发帮助文档
laravel
php
abs
acos
acosh
asin
asinh
atan
atan2
atanh
base_convert
bindec
ceil
cos
cosh
decbin
dechex
decoct
deg2rad
exp
expm1
fdiv
floor
fmod
getrandmax
hexdec
hypot
intdiv
is_finite
is_infinite
is_nan
lcg_value
log
log10
log1p
max
min
mt_getrandmax
mt_rand
mt_srand
octdec
pi
pow
rad2deg
rand
round
sin
sinh
sqrt
srand
tan
tanh
« fmod
hexdec »
PHP Manual
Math 函数
显示随机数最大的可能值
getrandmax
(PHP 4, PHP 5, PHP 7, PHP 8)
getrandmax
—
显示随机数最大的可能值
说明
getrandmax
( ) :
int
返回调用
rand()
可能返回的最大值。
返回值
rand()
返回 随机数可能返回的最大值
参见
rand()
- 产生一个随机整数
srand()
- 播下随机数发生器种子
mt_getrandmax()
- 显示随机数的最大可能值