Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Mathematical Functions : mt_getrandmax

mt_getrandmax

Show largest possible random value (PHP 4, PHP 5)
int mt_getrandmax ( )

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

Return Values

Returns the maximum random value returned by mt_rand()

Code Examples / Notes » mt_getrandmax

rafael

For 64-bit AMD processor and Linux 2.6 kernel (SuSE 64), it returns the same: 2147483647.

drt

For 32-bit Intel processor and Linux 2.6 kernel, it returns 2147483647.

Change Language


Follow Navioo On Twitter
abs
acos
acosh
asin
asinh
atan2
atan
atanh
base_convert
bindec
ceil
cos
cosh
decbin
dechex
decoct
deg2rad
exp
expm1
floor
fmod
getrandmax
hexdec
hypot
is_finite
is_infinite
is_nan
lcg_value
log10
log1p
log
max
min
mt_getrandmax
mt_rand
mt_srand
octdec
pi
pow
rad2deg
rand
round
sin
sinh
sqrt
srand
tan
tanh
eXTReMe Tracker