array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.mt-getrandmax.php', 1 => 'mt_getrandmax', ), 'up' => array ( 0 => 'ref.random.php', 1 => 'Random Functions', ), 'prev' => array ( 0 => 'function.lcg-value.php', 1 => 'lcg_value', ), 'next' => array ( 0 => 'function.mt-rand.php', 1 => 'mt_rand', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/random/functions/mt-getrandmax.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
mt_getrandmax — Show largest possible random value
Returns the maximum value that can be returned by a call to mt_rand().
This function has no parameters.
Returns the maximum random value returned by a call to
mt_rand() without arguments, which is the maximum value
that can be used for its max
parameter without the
result being scaled up (and therefore less random).