package zar

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val bits : unit -> bool Seq.t

Default implementation of uniformly distributed random bit stream.

val self_init : unit -> unit

Initialize PRNG used for default implementation of bit stream.

val init : int -> unit

Initialize PRNG used for default implementation of bit stream.

val coin_transformer : int -> int -> bool Seq.t -> bool Seq.t

Coin stream transformer.

val die_transformer : int -> bool Seq.t -> int Seq.t

Die stream transformer.

val findist_transformer : int list -> bool Seq.t -> int Seq.t

Findist stream transformer.

val coin_stream : int -> int -> bool Seq.t

Coin stream (applied to bits).

val die_stream : int -> int Seq.t

Die stream (applied to bits).

val findist_stream : int list -> int Seq.t

Findist stream (applied to bits).

class 'a sampler : 'a Seq.t -> object ... end

Stateful interface over a stream of samples.

val coin : int -> int -> bool sampler

Stateful coin sampler.

val die : int -> int sampler

Stateful die sampler.

val findist : int list -> int sampler

Stateful findist sampler.

OCaml

Innovation. Community. Security.