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

scipy.stats.rv_histogram.random_state

property rv_histogram.random_state

Get or set the generator object for generating random variates.

If seed is None (or np.random), the numpy.random.RandomState singleton is used. If seed is an int, a new RandomState instance is used, seeded with seed. If seed is already a Generator or RandomState instance then that instance is used.