### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Random sampling (`numpy.random`) »

# numpy.random.set_state

`numpy.random.``set_state`(state)

  Set the state from a tuple.

  state = (‘MT19937’, int key[624], int pos, int has_gauss, float cached_gaussian)

  For backwards compatibility, the following form is also accepted although it is missing some information about the cached Gaussian value.

  state = (‘MT19937’, int key[624], int pos)

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Random sampling (`numpy.random`) »