SciPy

numpy.random.RandomState.seed

method

RandomState.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 1-d array_like, optional

Seed for RandomState. Must be convertible to 32 bit unsigned integers.

See also

RandomState

Previous topic

numpy.random.RandomState.rayleigh

Next topic

numpy.random.RandomState.set_state