scipy.stats.sampling.SimpleRatioUniforms.
set_random_state#
- SimpleRatioUniforms.set_random_state(random_state=None)#
設定底層均勻隨機數字產生器。
- 參數:
- random_state{None, int,
numpy.random.Generator
, numpy.random.RandomState
}, 選項性NumPy 隨機數字產生器或用於底層 NumPy 隨機數字產生器的種子,用於產生均勻隨機數字流。如果 random_state 為 None (或 np.random),則會使用
numpy.random.RandomState
單例。如果 random_state 為整數,則會使用新的RandomState
實例,並以 random_state 作為種子。如果 random_state 已經是Generator
或RandomState
實例,則會使用該實例。
- random_state{None, int,