numpy.random.BitGenerator.spawn#
方法
- 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.在 1.25.0 版新加入.
- 參數:
- n_childrenint
- 回傳值:
- child_bit_generatorslist of BitGenerators
- Raises:
- TypeError
When the underlying SeedSequence does not implement spawning.
也參考
random.Generator.spawn,random.SeedSequence.spawnEquivalent method on the generator and seed sequence.