package mutaml

  1. Overview
  2. Docs

Source file RS.ml

1
2
3
4
5
6
(** A minimal RNG interface  *)
include Random4.State

let make_random_seed () = Random4.State.(bits (make_self_init ()))
let init seed = Random4.State.make [|seed|]
let int rs bound = int rs (bound+1)
OCaml

Innovation. Community. Security.