SciPy

scipy.stats.rv_histogram.random_state

property rv_histogram.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.