Skip to main content

Module numpy

Module numpy 

Source
Expand description

NumPy’s default random generator, numpy.random.default_rng(seed): SeedSequence mixing of the seed and the PCG64 generator, so that a seeded run here draws the same uniform numbers as NumPy (and as SciPy functions that take random_state=seed).

See the book entry Random variate generation.

Structs§

Pcg64
NumPy’s PCG64 generator (numpy.random.PCG64, the one behind default_rng): a 128-bit linear congruential generator with the XSL-RR output function.
SeedSequence
NumPy’s SeedSequence for an integer seed: the entropy pool, from which any number of 32-bit words of state are generated.