Class for storing items of a given type and fetching a randomised value from them. T is the element type (e.g. a colour string, a Body).
T
Gets a random item, using the supplied seeded rng when provided (falls back to Math.random). Replaces lodash sample, which drew from the global Math.random and could not be seeded.
rng
sample
Optional
Class for storing items of a given type and fetching a randomised value from them.
Tis the element type (e.g. a colour string, a Body).