Skip to main content

Grab Bag

Overview

Grab bags are distributions with a limited count for each item. They are best visualized as a 'bag' of items; imagine a physical bag containing balls of different colors. Sampling from a Grab Bag is like removing a single ball from that bag.

Example

Suppose we have a bag of 10 balls:

Distribution A (Grab Bag)
ColorCountProbability
Red330% (3 / 10)
Blue220% (2 / 10)
Green550% (5 / 10)

Suppose we sample from the Grab Bag and receive a Red ball. Afterwards, the Grab Bag looks like this:

Distribution B (After Sampling Red)
ColorCountProbability
Red222.2% (2 / 9)
Blue222.2% (2 / 9)
Green555.5% (5 / 9)

Suppose we sampled twice more and received Red each time:

Distribution B (After Sampling Red x2)
ColorCountProbability
Red00% (0 / 7)
Blue228.6% (2 / 7)
Green571.4% (5 / 7)

We have sampled all of the red balls, meaning they are now ineligible.

Advanced

Eligibility

Weight > 0 (Weight == Count for Grab Bags).