Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
import * as sptaki from "https://deno.land/x/sptaki@1.2.0/utils/mod.ts";

Classes

A ProbabilityObject which is use as an element to the ProbabilityObjectArray array It contains a key, the relative probability as well as optional data.

Array of ProbabilityObjectArray which allow to randomly draw of the contained objects based on the relative probability of each of its elements. The probabilities of the contained element is not required to be normalized.

Utility class to handle time related operations.