scipy.stats.sampling.DiscreteGuideTable.

set_random_state#

DiscreteGuideTable.set_random_state(random_state=None)#

設定底層均勻隨機數字產生器。

參數:
random_state{None, int, numpy.random.Generator,

一個 NumPy 隨機數字產生器或用於產生均勻隨機數字流的底層 NumPy 隨機數字產生器的種子。如果 random_state 為 None (或 np.random),則會使用 numpy.random.RandomState 單例。如果 random_state 是一個整數,則會使用一個新的 RandomState 實例,並以 random_state 作為種子。如果 random_state 已經是一個 GeneratorRandomState 實例,則會使用該實例。