dpnp.random.seed
- dpnp.random.seed(seed=None, device=None, sycl_queue=None)[source]
Reseed a legacy MT19937 random number generator engine.
- Parameters:
device ({None, string, SyclDevice, SyclQueue}, optional) -- An array API concept of device where an array with generated numbers will be created. The device can be
None(the default), an OneAPI filter selector string, an instance ofdpctl.SyclDevicecorresponding to a non-partitioned SYCL device, an instance ofdpctl.SyclQueue, or a Device object returned bydpnp.dpnp_array.dpnp_array.deviceproperty.sycl_queue ({None, SyclQueue}, optional) -- A SYCL queue to use for an array with generated numbers.
Limitations
The seed parameter is supported as a scalar or an array of at most three integer scalars.