<HTML ><HEAD ><TITLE >getrandmax</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK REL="HOME" TITLE="PHP Manual" HREF="manual.html"><LINK REL="UP" TITLE="Mathematical functions" HREF="ref.math.html"><LINK REL="PREVIOUS" TITLE="Floor" HREF="function.floor.html"><LINK REL="NEXT" TITLE="HexDec" HREF="function.hexdec.html"></HEAD ><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.floor.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.hexdec.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.getrandmax" >getrandmax</A ></H1 ><DIV CLASS="refnamediv" ><A NAME="AEN15725" ></A >getrandmax -- show largest possible random value</DIV ><DIV CLASS="refsect1" ><A NAME="AEN15728" ></A ><H2 >Description</H2 ><DIV CLASS="funcsynopsis" ><P ></P ><CODE CLASS="FUNCDEF" >int getrandmax</CODE >(void );<P ></P ></DIV ><P > Returns the maximum value that can be returned by a call to <A HREF="function.rand.html" ><B CLASS="function" >rand()</B ></A >.</P ><P > See also <A HREF="function.rand.html" ><B CLASS="function" >rand()</B ></A >, <A HREF="function.srand.html" ><B CLASS="function" >srand()</B ></A > <A HREF="function.mt-rand.html" ><B CLASS="function" >mt_rand()</B ></A >, <A HREF="function.mt-srand.html" ><B CLASS="function" >mt_srand()</B ></A > and <A HREF="function.mt-getrandmax.html" ><B CLASS="function" >mt_getrandmax()</B ></A >.</P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.floor.html" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="manual.html" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.hexdec.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Floor</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.math.html" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >HexDec</TD ></TR ></TABLE ></DIV ></BODY ></HTML >