### Navigation

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

# numpy.random.seed

`numpy.random.``seed`(seed=None)

  Seed the generator.

  This method is called when `RandomState` is initialized. It can be called again to re-seed the generator. For details, see `RandomState`.

  Parameters : | seed : int or array_like, optional Seed for `RandomState`.

  See also

  `RandomState`

### Navigation

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