@keystonehq/alias-sampling

A Node.js module for efficient sampling from a discrete probability distribution using the alias method.

Browse on unpkg