dpnp.random.BitGenerator

class dpnp.random.BitGenerator(seed=None, *, device=None, sycl_queue=None)[source]

Base class for the bit generators of dpnp.random.Generator.

A bit generator is bound to one SYCL queue, and every array it produces is allocated on that queue.

Parameters:
seed{None, int, array_like[ints], SeedSequence}, optional

The entropy the initial state is derived from. With None, fresh entropy is pulled from the operating system. An integer or a sequence of integers is passed to numpy.random.SeedSequence to derive the state.

Default: None.

device{None, string, SyclDevice, SyclQueue, Device}, optional

An array API concept of device where arrays are created. device can be None, a oneAPI filter selector string, an instance of dpctl.SyclDevice corresponding to a non-partitioned SYCL device, an instance of dpctl.SyclQueue, or a dpctl.tensor.Device object returned by dpnp.ndarray.device.

Default: None.

sycl_queue{None, SyclQueue}, optional

A SYCL queue to use for arrays created by the bit generator.

Default: None.