精華區beta CSSE 關於我們 聯絡資訊
※ 引述《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