numpy.random.BitGenerator.spawn — NumPy v2.3.dev0 Manual (original) (raw)

method

random.BitGenerator.spawn(n_children)#

Create new independent child bit generators.

See SeedSequence spawning for additional notes on spawning children. Some bit generators also implement jumpedas a different approach for creating independent streams.

New in version 1.25.0.

Parameters:

n_childrenint

Returns:

child_bit_generatorslist of BitGenerators

Raises:

TypeError

When the underlying SeedSequence does not implement spawning.