package feat-core

  1. Overview
  2. Docs
type t

The state of the random number generator.

val bits : t -> int

bits s returns 30 random bits in a nonnegative integer.

val int : t -> int -> int

int bound returns a random integer comprised between 0 (inclusive) and bound (exclusive). bound must be greater than 0 and less than 230.

OCaml

Innovation. Community. Security.