Module Random.State
ocaml
type treasonml
type t;The type of PRNG states.
ocaml
val make : int array -> treasonml
let make: array(int) => t;Create a new state and initialize it with the given seed.
ocaml
val make_self_init : unit -> treasonml
let make_self_init: unit => t;Create a new state and initialize it with a random seed chosen in a system-dependent way. The seed is obtained as described in Random.self_init.
ocaml
val copy : t -> treasonml
let copy: t => t;Return a copy of the given state.
ocaml
val bits : t -> intreasonml
let bits: t => int;ocaml
val int : t -> int -> intreasonml
let int: t => int => int;ocaml
val full_int : t -> int -> intreasonml
let full_int: t => int => int;ocaml
val int32 : t -> Int32.t -> Int32.treasonml
let int32: t => Int32.t => Int32.t;ocaml
val int64 : t -> Int64.t -> Int64.treasonml
let int64: t => Int64.t => Int64.t;ocaml
val float : t -> float -> floatreasonml
let float: t => float => float;ocaml
val bool : t -> boolreasonml
let bool: t => bool;ocaml
val bits32 : t -> Int32.treasonml
let bits32: t => Int32.t;ocaml
val bits64 : t -> Int64.treasonml
let bits64: t => Int64.t;