pollita Tue Aug 12 20:52:24 2003 EDT Modified files: /phpdoc/en/reference/math/functions rand.xml Log: Note re: RAND_MAX limitations Index: phpdoc/en/reference/math/functions/rand.xml diff -u phpdoc/en/reference/math/functions/rand.xml:1.5 phpdoc/en/reference/math/functions/rand.xml:1.6 --- phpdoc/en/reference/math/functions/rand.xml:1.5 Fri May 30 15:48:38 2003 +++ phpdoc/en/reference/math/functions/rand.xml Tue Aug 12 20:52:24 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/math.xml, last change in rev 1.2 --> <refentry id="function.rand"> <refnamediv> @@ -21,6 +21,14 @@ between 5 and 15 (inclusive), for example, use <literal>rand (5, 15)</literal>. </simpara> + + <note> + <simpara> + On some platforms (such as Windows) <constant>RAND_MAX</constant> + is only 32768. If you require a range larger than 32768, consider + using <function>mt_rand</function> instead. + </simpara> + </note> ¬e.randomseed;
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php