UrnUrns for weighted random sampling.
This module implements the urn data structure given a weight type that is a totally ordered group with a random sampling function.
module type WeightType = sig ... endInput signature of the functor Make.
Functor building an implementation of the urn structure given a weight type.
module IntWeight : WeightType with type t = intA module for int weights using Random.int to sample random integers.
module FloatWeight : WeightType with type t = floatA module for float weights using Random.float to sample random floating point numbers.