NotQuiteParadise2

RNG

class RNG(game: Game)[source]

Bases: random.Random

Initialize an instance.

Optional argument x controls seeding, as for Random.seed().

__init__(game: Game)[source]

Initialize an instance.

Optional argument x controls seeding, as for Random.seed().

roll(min_value: int = 0, max_value: int = 99) int[source]

Roll for a number between min and max. Can handle negative numbers.

set_seed(seed: int)[source]

Set the seed for randomness.