package make-random

  1. Overview
  2. Docs
type state
include State64 with type state := state
val bits : state -> int64

Similar to State30.bits except it returns an int64 number. All the 64 bits must be random.

include Init30 with type state := state
val new_state : unit -> state

Create a new non-initialised state.

val assign : state -> state -> unit

assign s1 s2 copies s2 into s1.

val init_size : int

Required size for the array in init.

val init : state -> int array -> unit

Initialise the state based on the values in the array. The array contains init_size random 30-bits integers.

val default_seed : int

Seed that will be given to init to generate the default state.