Seed becomes optional in PHP 4.2.0

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@145949 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2003-12-08 09:19:54 +00:00
parent f49d0677bf
commit f49d1921d2
2 changed files with 8 additions and 4 deletions

View file

@ -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.mt-srand">
<refnamediv>
@ -10,11 +10,13 @@
<title>Description</title>
<methodsynopsis>
<type>void</type><methodname>mt_srand</methodname>
<methodparam><type>int</type><parameter>seed</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>seed</parameter></methodparam>
</methodsynopsis>
<para>
Seeds the random number generator with
<parameter>seed</parameter>.
Since PHP 4.2.0, the <parameter>seed</parameter>
becomes optional and defaults to a random value if omitted.
<informalexample>
<programlisting role="php">
<![CDATA[

View file

@ -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.srand">
<refnamediv>
@ -10,11 +10,13 @@
<title>Description</title>
<methodsynopsis>
<type>void</type><methodname>srand</methodname>
<methodparam><type>int</type><parameter>seed</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>seed</parameter></methodparam>
</methodsynopsis>
<para>
Seeds the random number generator with
<parameter>seed</parameter>.
Since PHP 4.2.0, the <parameter>seed</parameter>
becomes optional and defaults to a random value if omitted.
<informalexample>
<programlisting role="php">
<![CDATA[