dpnp.random.RandomState
- class dpnp.random.RandomState(seed=None, device=None, sycl_queue=None)[source]
A container for the Mersenne Twister pseudo-random number generator.
For full documentation refer to
numpy.random.RandomState.- Parameters:
seed ({None, int, array_like}, optional) -- A random seed to initialize the pseudo-random number generator. The seed can be
None(the default), an integer scalar, or an array of at most three integer scalars.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 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 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.