Re: [程式] 亂數的來源 玩家

看板CSSE作者 (Go! Illini!)時間18年前 (2006/11/18 17:36), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串8/9 (看更多)
※ 引述《ykjiang (York)》之銘言: : ※ 引述《garywine1201 (擁抱大光頭)》之銘言: : : 我對每個大樣本群都分為四份 然後對四份樣本群輪流或隨機取亂數 : : 這樣倒是能夠取得一個還不錯的亂數效果 : : 方法雖然簡單~不過不錯用 : 也就是同時運用多個 seed ,然後在這多個 generator 間輪流取, : 不過我當初是用在座標上, x 軸一個 generator , y 軸一個 generator : 直觀上,這是個安全的作法,當 RNG 在你應用場合有明顯 pattern : 時,這是個解法。 : PS. 我不久前對 RNG 有作簡單的整理:http://tinyurl.com/ud87e 我也是用 MT 當 RNG http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html M. Matsumoto and T. Nishimura, "Mersenne Twister: A 623-dimensionally equidistributed uniform pseudorandom number generator", ACM Trans. on Modeling and Computer Simulation Vol. 8, No. 1, January pp.3-30 (1998) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.88.61
文章代碼(AID): #15NjGLp9 (CSSE)
討論串 (同標題文章)
文章代碼(AID): #15NjGLp9 (CSSE)