reference/math/functions/lcg-value.xml
2166824858a40ea664c558f2930b63b8f4fd89c6
...
...
@@ -1,57 +0,0 @@
1
-
<?xml version="1.0" encoding="utf-8"?>
2
-
<!-- $Revision$ -->
3
-
<refentry xml:id="function.lcg-value" xmlns="http://docbook.org/ns/docbook">
4
-
<refnamediv>
5
-
<refname>lcg_value</refname>
6
-
<refpurpose>Combined linear congruential generator</refpurpose>
7
-
</refnamediv>
8
-
<refsect1 role="description">
9
-
&reftitle.description;
10
-
<methodsynopsis>
11
-
<type>float</type><methodname>lcg_value</methodname>
12
-
<void/>
13
-
</methodsynopsis>
14
-
<para>
15
-
<function>lcg_value</function> returns a pseudo random number in
16
-
the range of (0, 1). The function combines two CGs with periods
17
-
of 2^31 - 85 and 2^31 - 249. The period of this function is equal
18
-
to the product of both primes.
19
-
</para>
20
-
</refsect1>
21
-
<refsect1 role="returnvalues">
22
-
&reftitle.returnvalues;
23
-
<para>
24
-
A pseudo random float value in the range of (0, 1)
25
-
</para>
26
-
</refsect1>
27
-
<refsect1 role="seealso">
28
-
&reftitle.seealso;
29
-
<para>
30
-
<simplelist>
31
-
<member><function>rand</function></member>
32
-
<member><function>mt_rand</function></member>
33
-
</simplelist>
34
-
</para>
35
-
</refsect1>
36
-
</refentry>
37
-

38
-
<!-- Keep this comment at the end of the file
39
-
Local variables:
40
-
mode: sgml
41
-
sgml-omittag:t
42
-
sgml-shorttag:t
43
-
sgml-minimize-attributes:nil
44
-
sgml-always-quote-attributes:t
45
-
sgml-indent-step:1
46
-
sgml-indent-data:t
47
-
indent-tabs-mode:nil
48
-
sgml-parent-document:nil
49
-
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
50
-
sgml-exposed-tags:nil
51
-
sgml-local-catalogs:nil
52
-
sgml-local-ecat-files:nil
53
-
End:
54
-
vim600: syn=xml fen fdm=syntax fdl=2 si
55
-
vim: et tw=78 syn=sgml
56
-
vi: ts=1 sw=1
57
-
-->
58
0