man-pages/man3/Random.State.3o.html
2021-03-31 01:06:50 +01:00

153 lines
1.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of Random.State</TITLE>
</HEAD><BODY>
<H1>Random.State</H1>
Section: OCaml library (3o)<BR>Updated: 2020-01-30<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
Random.State - no description
<A NAME="lbAC">&nbsp;</A>
<H2>Module</H2>
Module Random.State
<A NAME="lbAD">&nbsp;</A>
<H2>Documentation</H2>
<P>
Module
<B>State</B>
<BR>&nbsp;:&nbsp;
<B>sig end</B>
<P>
<P>
<P>
<P>
<P>
<P>
<P>
<I>type t </I>
<P>
<P>
The type of PRNG states.
<P>
<P>
<P>
<I>val make </I>
:
<B>int array -&gt; t</B>
<P>
Create a new state and initialize it with the given seed.
<P>
<P>
<P>
<I>val make_self_init </I>
:
<B>unit -&gt; t</B>
<P>
Create a new state and initialize it with a system-dependent
low-entropy seed.
<P>
<P>
<P>
<I>val copy </I>
:
<B>t -&gt; t</B>
<P>
Return a copy of the given state.
<P>
<P>
<P>
<I>val bits </I>
:
<B>t -&gt; int</B>
<P>
<P>
<P>
<P>
<I>val int </I>
:
<B>t -&gt; int -&gt; int</B>
<P>
<P>
<P>
<P>
<I>val int32 </I>
:
<B>t -&gt; Int32.t -&gt; Int32.t</B>
<P>
<P>
<P>
<P>
<I>val nativeint </I>
:
<B>t -&gt; Nativeint.t -&gt; Nativeint.t</B>
<P>
<P>
<P>
<P>
<I>val int64 </I>
:
<B>t -&gt; Int64.t -&gt; Int64.t</B>
<P>
<P>
<P>
<P>
<I>val float </I>
:
<B>t -&gt; float -&gt; float</B>
<P>
<P>
<P>
<P>
<I>val bool </I>
:
<B>t -&gt; bool</B>
<P>
These functions are the same as the basic functions, except that they
use (and update) the given PRNG state instead of the default one.
<P>
<P>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">Module</A><DD>
<DT id="3"><A HREF="#lbAD">Documentation</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:54 GMT, March 31, 2021
</BODY>
</HTML>