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.

For full documentation refer to numpy.random.BitGenerator.

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 the output array is 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 dpnp.tensor.Device object returned by dpnp.ndarray.device.

Default: None.

sycl_queue{None, SyclQueue}, optional

A SYCL queue to use for output array allocation and copying. The sycl_queue can be passed as None (the default), which means to get the SYCL queue from device keyword if present or to use a default queue.

Default: None.