gstools.random.MasterRNG

class gstools.random.MasterRNG(seed)[source]

Bases: object

Master random number generator for generating seeds.

Parameters:

seed (int or None, optional) – The seed of the master RNG, if None, a random seed is used. Default: None

Attributes:
seed

int: Seed of the master RNG.

Methods

__call__()

Return a random seed.

__call__()[source]

Return a random seed.

property seed

Seed of the master RNG.

The setter property not only saves the new seed, but also creates a new master RNG function with the new seed.

Type:

int