package pringo

  1. Overview
  2. Docs
type t

Creating and seeding PRNGs

val seed : string -> t
val make : int array -> t
val make_self_init : unit -> t

Generating pseudo-random data

val bool : t -> bool * t
val bit : t -> bool * t
val float : float -> t -> float * t
val byte : t -> int * t
val bits8 : t -> int * t
val int : int -> t -> int * t
val bits : t -> int * t
val bits30 : t -> int * t
val bits32 : t -> int32 * t
val int32 : int32 -> t -> int32 * t
val bits64 : t -> int64 * t
val int64 : int64 -> t -> int64 * t
val nativebits : t -> nativeint * t
val nativeint : nativeint -> t -> nativeint * t
val char : t -> char * t

Splitting

val split : t -> t * t
OCaml

Innovation. Community. Security.