RandomState
is a class, but RandomState(whatever_arguments)
simply creates a new instance of the class RandomState
.
__init__
(/ __new__
), . , , docstring , ,
class numpy.random.RandomState
.
RandomState , . , , , None. None, . , 1- , . , .
. RandomState, , , , . , NumPy, , . , .
:
seed: {None, int, array_like},
, . 0 2 ** 32 - 1 , ( ) None ( ). seed - None, RandomState /dev/urandom ( Windows), , .