mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
f49d0677bf
commit
f49d1921d2
2 changed files with 8 additions and 4 deletions
|
@ -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[
|
||||
|
|
|
@ -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[
|
||||
|
|
Loading…
Reference in a new issue