repast4py.random module

Random numbers for repast4py. When this module is imported, repast4py.random.default_rng is created using the current epoch time as the random seed, and repast4py.random.seed is set to that value. The default random number generator is a numpy.random.Generator. See that API documentation for more information on the available distributions and sampling functions.

repast4py.random.default_rng: numpy.random._generator.Generator = Generator(PCG64) at 0x7FACA4EF4D60

repast4py’s default random generator created using init. See the Generator API documentation for more information on the available distributions and sampling functions.

Type

numpy.random.Generator

repast4py.random.init(rng_seed=None)

Initializes the default random number generator using the specified seed.

Parameters

rng_seed (int) – the random number seed. Defaults to None in which case, the current time as returned by time.time() is used as the seed.

repast4py.random.seed: int = 1635271926

The current random seed used by repast4py.random.default_rng