Class: FrozenRandom

FrozenRandom()

new FrozenRandom()

A WeightedRandom that always chooses the same value until reset.

Source:

Extends

Methods

choose()

As WeightedRandom.choose, except that once it has been called once, it will always return the same value (unless .reset is called)

Overrides:
Source:

reset()

Resets the FrozenRandom's behavior, causing it to choose randomly again next time .choose is called, not necessarily returning the same value as before.

Source: