mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
added function description for lcg_value()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@32137 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c9983e0003
commit
561087fa75
1 changed files with 23 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
<reference id="ref.math">
|
||||
<title>Mathematical Functions</title>
|
||||
<titleabbrev>Math.</titleabbrev>
|
||||
|
||||
|
||||
<partintro>
|
||||
<sect1>
|
||||
<title>Introduction</title>
|
||||
|
@ -556,6 +556,28 @@ $binary = base_convert ($hexadecimal, 16, 2);
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.lcg-value">
|
||||
<refnamediv>
|
||||
<refname>lcg_value</refname>
|
||||
<refpurpose>Combined linear congruential generator</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>double <function>lcg_value</function></funcdef>
|
||||
<void/>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
<function>lcg_value</function> returns a pseudo random number in
|
||||
the range of (0, 1). The function combines two CGs with periods
|
||||
of 2^31 - 85 and 2^31 - 249. The period of this function is equal
|
||||
to the product of both primes.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.log">
|
||||
<refnamediv>
|
||||
<refname>log</refname>
|
||||
|
|
Loading…
Reference in a new issue