numpy.random.BitGenerator.spawn#

方法

random.BitGenerator.spawn(n_children)#

建立新的獨立子位元生成器。

請參閱 SeedSequence 衍生 以了解更多關於衍生子代的資訊。 某些位元生成器也實作了 jumped 作為建立獨立流的不同方法。

1.25.0 版本新增。

參數:
n_childrenint
返回:
child_bit_generatorslist of BitGenerators
引發:
TypeError

當底層 SeedSequence 未實作衍生時。

另請參閱

random.Generator.spawn, random.SeedSequence.spawn

生成器和種子序列上的等效方法。