<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://owiki.kmu.edu.tw/skins/common/feed.css?63"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>亂數產生器-Mersenne Twister Random Number Generator - 修訂歷史</title>
		<link>http://owiki.kmu.edu.tw/index.php?title=%E4%BA%82%E6%95%B8%E7%94%A2%E7%94%9F%E5%99%A8-Mersenne_Twister_Random_Number_Generator&amp;action=history</link>
		<description>本站上此頁的修訂歷史</description>
		<language>zh-tw</language>
		<generator>MediaWiki 1.10.1</generator>
		<lastBuildDate>Mon, 11 May 2026 14:03:19 GMT</lastBuildDate>
		<item>
			<title>Mo在2008年5月1日 (四) 18:43</title>
			<link>http://owiki.kmu.edu.tw/index.php?title=%E4%BA%82%E6%95%B8%E7%94%A2%E7%94%9F%E5%99%A8-Mersenne_Twister_Random_Number_Generator&amp;diff=3801&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table border='0' width='98%' cellpadding='0' cellspacing='4' style=&quot;background-color: white;&quot;&gt;
			&lt;tr&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;←上一修訂&lt;/td&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;在2008年5月1日 (四) 18:43所做的修訂版本&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;第1行：&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;第1行：&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;Mersenne Twister(簡稱MT&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;''''''&lt;/ins&gt;Mersenne Twister(簡稱MT&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;'''''''''):&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;在1998年由Makoto和Takuji提出的，是多重遞迴矩陣方法(MRMM)&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;中的一種，MRMM是在F2域上由線性遞推式&lt;/del&gt;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&lt;/ins&gt;在1998年由Makoto和Takuji提出的，是多重遞迴矩陣方法(MRMM)&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;中的一種，MRMM是在F&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;域上由線性遞推式:&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;[[Image:MRMM.JPG]]&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;[[Image:MRMM.JPG]]&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;&amp;lt;br&amp;gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;產生隨機向量序列。Xk是列向量，Ai是Wx &lt;/del&gt;W矩陣。&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;lt;br&amp;gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;產生隨機向量序列。X&amp;lt;sub&amp;gt;k&amp;lt;/sub&amp;gt;是列向量，Ai是Wx &lt;/ins&gt;W矩陣。&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;而MT演算法產生一個字(word)向量序列，看作是[0,&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;2的w次方&lt;/del&gt;-1]&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;間的均勻隨機整數。除以2的w次方&lt;/del&gt;-1，認為每個字向量為[0,1]的一個實數。 算法如下:&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &lt;/ins&gt;而MT演算法產生一個字(word)向量序列，看作是[0,&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;2&amp;lt;sup&amp;gt;w&amp;lt;/sup&amp;gt;&lt;/ins&gt;-1]&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;間的均勻隨機整數。除以2&amp;lt;sup&amp;gt;w&amp;lt;/sup&amp;gt;&lt;/ins&gt;-1，認為每個字向量為[0,1]的一個實數。 算法如下:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;[[Image:MRMM-1.JPG]]&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;[[Image:MRMM-1.JPG]]&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; n=遞推式的維數，0&amp;amp;lt;=r(隱藏於X上標u下標k的定義中)&amp;amp;lt;=w-1，1&amp;amp;lt;=m&amp;amp;lt;=n 。給出X&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;,X&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;,...X &amp;lt;sub&amp;gt;n-1&amp;lt;/sub&amp;gt;作為初始點，那麼X&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;由上面的式子再k=0時產生，令k=1,2,...，亂數產生器逐步產生X&amp;lt;sub&amp;gt;n+1&amp;lt;/sub&amp;gt;,X&amp;lt;sub&amp;gt;n+2&amp;lt;/sub&amp;gt;,...，在式子的右邊，Xuk意味著X&amp;lt;sub&amp;gt;k&amp;lt;/sub&amp;gt;前w-r位，因此如果X=(X&amp;lt;sub&amp;gt;w-1&amp;lt;/sub&amp;gt;,X&amp;lt;sub&amp;gt;w-2&amp;lt;/sub&amp;gt;,...,X&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;)，那麼由定義，X&amp;lt;sub&amp;gt;u&amp;lt;/sub&amp;gt;是w-r維向量(X&amp;lt;sub&amp;gt;w-1&amp;lt;/sub&amp;gt;,...,X&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;)，X&amp;lt;sub&amp;gt;t&amp;lt;/sub&amp;gt;是r維向量(X&amp;lt;sub&amp;gt;r-1&amp;lt;/sub&amp;gt;,...,X&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;sub&amp;gt;&amp;lt;/sub&amp;gt;)。因此(X上標u下標k | X上標t下標k+1)恰好是一個並列，即X&amp;lt;sub&amp;gt;k&amp;lt;/sub&amp;gt;前w-r位和X&amp;lt;sub&amp;gt;k+1&amp;lt;/sub&amp;gt;的後r位按順序並列再一起得到的一個向量。矩陣A乘在這個向量的右邊。(XOR舉例:1 XOR 1=0 XOR 0，1 XOR 0=0 XOR 1=1)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;n=遞推式的維數，0&lt;/del&gt;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;lt;br&amp;gt;對於上式，如果r=0，它變為X&amp;lt;sub&amp;gt;k+n&amp;lt;/sub&amp;gt;&amp;lt;sub&amp;gt;&amp;lt;/sub&amp;gt; = X&amp;lt;sub&amp;gt;k+n&amp;lt;/sub&amp;gt; XOR X&amp;lt;sub&amp;gt;k&amp;lt;/sub&amp;gt;&amp;lt;sub&amp;gt;&amp;lt;/sub&amp;gt;A，即變成Matsumoto和Kurita提出的TGFSR。如果r=0且A=I，它又變為X&amp;lt;sub&amp;gt;k+n&amp;lt;/sub&amp;gt; = X&amp;lt;sub&amp;gt;k+m&amp;lt;/sub&amp;gt; XOR X&amp;lt;sub&amp;gt;k&amp;lt;/sub&amp;gt;，即Lewis和Payne提出的GFSR。&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;&amp;amp;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;lt&lt;/del&gt;;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;=r(隱藏於Xuk的定義中)&lt;/del&gt;&amp;amp;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;lt&lt;/del&gt;;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;=w&lt;/del&gt;-&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;1，1&lt;/del&gt;&amp;amp;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;lt&lt;/del&gt;;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;=m&lt;/del&gt;&amp;amp;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;lt&lt;/del&gt;;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;=n 。給出X0,X1,...Xn-1作為初始點，那麼Xn由上面的式子再k=0時產生，令k=1,2,...，亂數產生器逐步產生Xn+1,Xn+2,...，在式子的右邊，Xuk意味著Xk前w-r位，因此如果X=&lt;/del&gt;(&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Xw-1,Xw-2,...,X0&lt;/del&gt;)&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;，那麼由定義，Xu是w&lt;/del&gt;-&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;r維向量(Xw-1,...,Xr)，Xt是r維向量(Xr-1,...,X0)。因此(Xuk|X上標t下標k+1)恰好是一個並列，即Xk前w-r位和Xk+1的後r位按順序並列再一起得到的一個向量。矩陣A乘在這個向量的右邊。(XOR舉例:1 XOR 1=0 XOR 0，1 XOR 0=0 XOR 1=1)&lt;/del&gt;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;amp;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;nbsp&lt;/ins&gt;;&amp;amp;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;nbsp&lt;/ins&gt;; &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;為了使乘A計算速度較快，選擇&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Image:MRMM&lt;/ins&gt;-&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;2.JPG]]&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;那麼計算XA可僅僅使用位運算：&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Image:MRMM-3.JPG]]&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&lt;/ins&gt;&amp;amp;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;nbsp&lt;/ins&gt;;&amp;amp;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;nbsp&lt;/ins&gt;;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;nbsp; MT有以下優點:隨機性好，在計算機上容易實現，佔用記憶體較少&lt;/ins&gt;(&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;mt19937的C程式碼執行僅需624個字的工作區&lt;/ins&gt;)&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;，與其它已使用的亂數產生器相比，產生隨機數的速度快、週期長，可達到2&amp;lt;sup&amp;gt;19937&amp;lt;/sup&amp;gt;&lt;/ins&gt;-&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;1，且具有623維均勻分布的性質。&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; 雖然MT在許多方面較其他產生器優越，但它還是有一些缺點，即它所產生的序列是&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;高維均勻性的，還不夠完善。&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Thu, 01 May 2008 18:43:04 GMT</pubDate>			<dc:creator>Mo</dc:creator>			<comments>http://owiki.kmu.edu.tw/index.php/Talk:%E4%BA%82%E6%95%B8%E7%94%A2%E7%94%9F%E5%99%A8-Mersenne_Twister_Random_Number_Generator</comments>		</item>
		<item>
			<title>Mo在2008年5月1日 (四) 17:57</title>
			<link>http://owiki.kmu.edu.tw/index.php?title=%E4%BA%82%E6%95%B8%E7%94%A2%E7%94%9F%E5%99%A8-Mersenne_Twister_Random_Number_Generator&amp;diff=3795&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table border='0' width='98%' cellpadding='0' cellspacing='4' style=&quot;background-color: white;&quot;&gt;
			&lt;tr&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;←上一修訂&lt;/td&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;在2008年5月1日 (四) 17:57所做的修訂版本&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;第6行：&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;第6行：&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;[[Image:MRMM.JPG]]&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;[[Image:MRMM.JPG]]&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;lt;br&amp;gt;產生隨機向量序列。Xk是列向量，Ai是Wx W矩陣。&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;產生隨機向量序列。Xk是列向量，Ai是W&lt;/del&gt;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;而MT演算法產生一個字(word)向量序列，看作是[0,2的w次方-1]間的均勻隨機整數。除以2的w次方-1，認為每個字向量為[0,1]的一個實數。 算法如下:&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;[[Image:MRMM-1.JPG]]&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;x W矩陣。&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;而MT演算法產生一個字&lt;/del&gt;(&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;word&lt;/del&gt;)&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;向量序列，看作是[0&lt;/del&gt;,&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;2的w次方&lt;/del&gt;-1&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;]間的均勻隨機整數。除以2的w次方&lt;/del&gt;-&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;1，認為每個字向量為[0&lt;/del&gt;,1&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;]的一個實數。&lt;/del&gt;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;n=遞推式的維數，0&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;lt;=r&lt;/ins&gt;(&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;隱藏於Xuk的定義中&lt;/ins&gt;)&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;lt;=w-1，1&amp;amp;lt;=m&amp;amp;lt;=n 。給出X0&lt;/ins&gt;,&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;X1,...Xn&lt;/ins&gt;-&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;1作為初始點，那麼Xn由上面的式子再k=0時產生，令k=&lt;/ins&gt;1&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;,2,...，亂數產生器逐步產生Xn+1,Xn+2,...，在式子的右邊，Xuk意味著Xk前w&lt;/ins&gt;-&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;r位，因此如果X=(Xw-1&lt;/ins&gt;,&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Xw-2,...,X0)，那麼由定義，Xu是w-r維向量(Xw-&lt;/ins&gt;1&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;,...,Xr)，Xt是r維向量(Xr-1,...,X0)。因此(Xuk|X上標t下標k+1)恰好是一個並列，即Xk前w-r位和Xk+1的後r位按順序並列再一起得到的一個向量。矩陣A乘在這個向量的右邊。(XOR舉例:1 XOR 1=0 XOR 0，1 XOR 0=0 XOR 1=1)&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Thu, 01 May 2008 17:57:41 GMT</pubDate>			<dc:creator>Mo</dc:creator>			<comments>http://owiki.kmu.edu.tw/index.php/Talk:%E4%BA%82%E6%95%B8%E7%94%A2%E7%94%9F%E5%99%A8-Mersenne_Twister_Random_Number_Generator</comments>		</item>
		<item>
			<title>Mo: 新頁面: Mersenne Twister(簡稱MT   )在1998年由Makoto和Takuji提出的，是多重遞迴矩陣方法(MRMM)中的一種，MRMM是在F2域上由線性遞推式  Image:MRMM.JPG   產生隨...</title>
			<link>http://owiki.kmu.edu.tw/index.php?title=%E4%BA%82%E6%95%B8%E7%94%A2%E7%94%9F%E5%99%A8-Mersenne_Twister_Random_Number_Generator&amp;diff=3785&amp;oldid=prev</link>
			<description>&lt;p&gt;新頁面: Mersenne Twister(簡稱MT   )在1998年由Makoto和Takuji提出的，是多重遞迴矩陣方法(MRMM)中的一種，MRMM是在F2域上由線性遞推式  &lt;a href=&quot;/index.php/Image:MRMM.JPG&quot; title=&quot;Image:MRMM.JPG&quot;&gt;Image:MRMM.JPG&lt;/a&gt;   產生隨...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Mersenne Twister(簡稱MT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
)在1998年由Makoto和Takuji提出的，是多重遞迴矩陣方法(MRMM)中的一種，MRMM是在F2域上由線性遞推式&lt;br /&gt;
&lt;br /&gt;
[[Image:MRMM.JPG]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
產生隨機向量序列。Xk是列向量，Ai是W&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
x W矩陣。&lt;br /&gt;
&lt;br /&gt;
而MT演算法產生一個字(word)向量序列，看作是[0,2的w次方-1]間的均勻隨機整數。除以2的w次方-1，認為每個字向量為[0,1]的一個實數。&lt;/div&gt;</description>
			<pubDate>Thu, 01 May 2008 17:30:42 GMT</pubDate>			<dc:creator>Mo</dc:creator>			<comments>http://owiki.kmu.edu.tw/index.php/Talk:%E4%BA%82%E6%95%B8%E7%94%A2%E7%94%9F%E5%99%A8-Mersenne_Twister_Random_Number_Generator</comments>		</item>
	</channel>
</rss>