package zar

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val take : int -> 'a Zar__.Stream.stream -> 'a list

Take the first n elements of a stream.

val drop : int -> 'a Zar__.Stream.stream -> 'a Zar__.Stream.stream

Drop the first n elements of a stream.

val bits : unit -> bool Zar__.Stream.stream

Default implementation of uniformly distributed random bit stream.

val seed : unit -> unit

Initialize PRNG used for default implementation of bit stream.

val coin_transformer : int -> int -> bool Zar__.Stream.stream -> bool Zar__.Stream.stream

Coin stream transformer.

val die_transformer : int -> bool Zar__.Stream.stream -> int Zar__.Stream.stream

Die stream transformer.

val findist_transformer : int list -> bool Zar__.Stream.stream -> int Zar__.Stream.stream

Findist stream transformer.

val coin : int -> int -> bool Zar__.Stream.stream

Coin stream (applied to bits).

val die : int -> int Zar__.Stream.stream

Die stream (applied to bits).

val findist : int list -> int Zar__.Stream.stream

Findist stream (applied to bits).

OCaml

Innovation. Community. Security.