numpy.random.RandomState
numpy.random.RandomState
-
class numpy.random.RandomState
-
Container for the Mersenne Twister pseudo-random number generator.
RandomState
exposes a number of methods for generating random numbers drawn from a variety of probability distributions. In addition to the distribution-specific arguments, each method takes a keyword argumentsize
that defaults toNone
. Ifsize
isNone
, then a single value is generated and returned. Ifsize
is an integer, then a 1-D array filled with generated values is returned. Ifsize
is a tuple, then an array with that shape is filled and returned.Compatibility Guarantee A fixed seed and a fixed series of calls to ‘RandomState’ met