numpy.random.seed

numpy.random.seed(seed=None)

Seed the generator.

seed can be an integer, an array (or other sequence) of integers of any length, or None. If seed is None, then RandomState will try to read data from /dev/urandom (or the Windows analogue) if available or seed from the clock otherwise.

Previous topic

numpy.random.mtrand.RandomState

Next topic

numpy.random.get_state

This Page

Quick search