SciPy

This is documentation for an old release of SciPy (version 1.5.3). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.stats.rv_discrete.random_state

property rv_discrete.random_state

Get or set the RandomState object for generating random variates.

This can be either None, int, a RandomState instance, or a np.random.Generator instance.

If None (or np.random), use the RandomState singleton used by np.random. If already a RandomState or Generator instance, use it. If an int, use a new RandomState instance seeded with seed.