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 tonumpy.random.SeedSequenceto 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 ofdpctl.SyclDevicecorresponding to a non-partitioned SYCL device, an instance ofdpctl.SyclQueue, or adpctl.tensor.Deviceobject returned bydpnp.ndarray.device.Default:
None.- sycl_queue{None, SyclQueue}, optional
A SYCL queue to use for arrays created by the bit generator.
Default:
None.