Random.State(3) OCaml library Random.State(3)

# [NAME](#NAME)

Random.State - no description

# [Module](#Module)

Module Random.State

# [Documentation](#Documentation)

Module **State**  
: **sig end**

*type t*

The type of PRNG states.

*val make* : **int array -&gt; t**

Create a new state and initialize it with the given seed.

*val make\_self\_init* : **unit -&gt; t**

Create a new state and initialize it with a system-dependent low-entropy seed.

*val copy* : **t -&gt; t**

Return a copy of the given state.

*val bits* : **t -&gt; int**

*val int* : **t -&gt; int -&gt; int**

*val full\_int* : **t -&gt; int -&gt; int**

*val int32* : **t -&gt; Int32.t -&gt; Int32.t**

*val nativeint* : **t -&gt; Nativeint.t -&gt; Nativeint.t**

*val int64* : **t -&gt; Int64.t -&gt; Int64.t**

*val float* : **t -&gt; float -&gt; float**

*val bool* : **t -&gt; bool**

*val bits32* : **t -&gt; Int32.t**

*val bits64* : **t -&gt; Int64.t**

*val nativebits* : **t -&gt; Nativeint.t**

These functions are the same as the basic functions, except that they use (and update) the given PRNG state instead of the default one.

2026-09-15 OCamldoc

---

Document: Random.State(3o) from ocaml-4 4.14.4-r3 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
