irchtml Thu Apr 8 11:06:22 2004 EDT
Modified files:
/phpdoc/en/reference/math/functions rand.xml
Log:
Bug #27919: RAND_MAX does not limit upper value
http://cvs.php.net/diff.php/phpdoc/en/reference/math/functions/rand.xml?r1=1.12&r2=1.13&ty=u
Index: phpdoc/en/reference/math/functions/rand.xml
diff -u phpdoc/en/reference/math/functions/rand.xml:1.12
phpdoc/en/reference/math/functions/rand.xml:1.13
--- phpdoc/en/reference/math/functions/rand.xml:1.12 Wed Mar 10 09:39:13 2004
+++ phpdoc/en/reference/math/functions/rand.xml Thu Apr 8 11:06:22 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.rand">
<refnamediv>
@@ -49,8 +49,10 @@
<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.
+ is only 32768. If you require a range larger than 32768, specifying
+ <parameter>min</parameter> and <parameter>max</parameter> will allow
+ you to create a larger range than RAND_MAX, or consider using
+ <function>mt_rand</function> instead.
</simpara>
</note>