Skip to main content

Unlimited

Overview

Unlimited Distributions are the simplest kind of distribution. Each item has an integer weight, and its probability of being sampled equals its weight divided by the total weight of all items in the distribution. Like their name implies, items in unlimited distributions can be sampled unlimited times.

Example

Suppose we have 3 types of balls defined by their color. For the unlimited distribution, we suppose that the supply of balls is unlimited, meaning we can sample as many times as we want. This distribution looks like:

Distribution A (Unlimited)
ColorWeightProbability
Red20020% (200 / 1000)
Blue30030% (300 / 1000)
Green50050% (500 / 1000)

Sampling from this distribution would yield red, blue, or green with probabilities 20%, 30%, and 50% respectively. Their weights and probabilities do not change after being sampled.

Advanced

Eligibility

Weight > 0.