<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.random.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.mt-getrandmax.php',
    1 => 'mt_getrandmax',
    2 => 'Show largest possible random value',
  ),
  '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',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mt-getrandmax" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mt_getrandmax</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mt_getrandmax</span> &mdash; <span class="dc-title">Show largest possible random value</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.mt-getrandmax-description">
  <h3 class="title">Description</h3>
   <div class="methodsynopsis dc-description">
    <span class="methodname"><strong>mt_getrandmax</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="simpara">
   Returns the maximum value that can be returned by a call to
   <span class="function"><a href="function.mt-rand.php" class="function">mt_rand()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mt-getrandmax-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mt-getrandmax-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the maximum random value returned by a call to
   <span class="function"><a href="function.mt-rand.php" class="function">mt_rand()</a></span> without arguments, which is the maximum value
   that can be used for its <code class="parameter">max</code> parameter without the
   result being scaled up (and therefore less random).
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.mt-getrandmax-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.mt-rand.php" class="function" rel="rdfs-seeAlso">mt_rand()</a> - Generate a random value via the Mersenne Twister Random Number Generator</span></li>
    <li><span class="function"><a href="function.mt-srand.php" class="function" rel="rdfs-seeAlso">mt_srand()</a> - Seeds the Mersenne Twister Random Number Generator</span></li>
    <li><span class="function"><a href="function.getrandmax.php" class="function" rel="rdfs-seeAlso">getrandmax()</a> - Show largest possible random value</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>