spawn#
- pybrops.core.random.prng.spawn(n=None, BitGenerator=<class 'numpy.random._pcg64.PCG64'>, sbits=64)[source]#
Spawn new numpy PRNG streams.
- Parameters:
n (None, int) – Number of streams to spawn using entropy from the
random
module. IfNone
, generate one stream. Integer must be positive or zero.BitGenerator (numpy.random.BitGenerator) – A constructor for a
numpy.random.BitGenerator
object.sbits (int) – Number of bits used to seed the new PRNG streams.
- Returns:
streams – New random number generator streams.
- Return type:
numpy.random.Generator, list of numpy.random.Generator