# tensorplay.cuda.random.set_rng_state_all

Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.random.set_rng_state_all.html

# tensorplay.cuda.random.set_rng_state_all

tensorplay.cuda.random.set_rng_state_all(new_states: [Iterable](https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable)[TensorBase]) &#x2192; [None](https://docs.python.org/3/library/constants.html#None)[[source]](../_modules/tensorplay/cuda/random.html#set_rng_state_all)

Set the random number generator state of all devices.

Parameters:

new_states (Iterable of ByteTensor) – The desired state for each device.
