scipy.stats.rv_discrete.random_state#
- property rv_discrete.random_state#
Get or set the generator object for generating random variates.
If
random_state
is None (or np.random), thenumpy.random.RandomState
singleton is used. Ifrandom_state
is an int, a newRandomState
instance is used, seeded withrandom_state
. Ifrandom_state
is already aGenerator
orRandomState
instance, that instance is used.