Module Core_kernel.Splittable_random.State

type t
val create : Core_kernel__.Import.unit ‑> t

Create a new t non-deterministically.

val of_int : Core_kernel__.Import.int ‑> t

Create a new t that will return identical results to any other t created with that integer.

val perturb : t ‑> Core_kernel__.Import.int ‑> Core_kernel__.Import.unit

perturb t salt adds the entropy of salt to t.

val copy : t ‑> t

Create a copy of t that will return the same random samples as t.

val split : t ‑> t

split t produces a new state that behaves deterministically (i.e. only depending on the state of t), but pseudo-independently from t. This operation mutates t, i.e. t will return different values than if this hadn't been called.