dpnp.random.BitGenerator.spawn

method

BitGenerator.spawn(n_children)[source]

Create new independent child bit generators on the same SYCL queue.

For full documentation refer to numpy.random.BitGenerator.spawn.

Children are seeded by numpy.random.SeedSequence.spawn() of seed_seq.

Parameters:
n_childrenint

The number of children to create.

Returns:
outlist of BitGenerator

The child bit generators.

Raises:
TypeError

When the underlying seed sequence does not implement spawning, as when key is given to dpnp.random.Philox4x3210.