Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / src / nas,5.n2.os.2 / lib / python / html / python / ext / node52.html
CommitLineData
86530b38
AT
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<link rel="STYLESHEET" href="ext.css" type='text/css' />
5<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
6<link rel='start' href='../index.html' title='Python Documentation Index' />
7<link rel="first" href="ext.html" title='Extending and Embedding the Python Interpreter' />
8<link rel='contents' href='contents.html' title="Contents" />
9<link rel='last' href='about.html' title='About this document...' />
10<link rel='help' href='about.html' title='About this document...' />
11<link rel="next" href="node53.html" />
12<link rel="prev" href="node51.html" />
13<link rel="parent" href="node51.html" />
14<link rel="next" href="node53.html" />
15<meta name='aesop' content='information' />
16<title>B.3.1 Mersenne Twister</title>
17</head>
18<body>
19<DIV CLASS="navigation">
20<div id='top-navigation-panel' xml:id='top-navigation-panel'>
21<table align="center" width="100%" cellpadding="0" cellspacing="2">
22<tr>
23<td class='online-navigation'><a rel="prev" title="B.3 Licenses and Acknowledgements"
24 href="node51.html"><img src='../icons/previous.png'
25 border='0' height='32' alt='Previous Page' width='32' /></A></td>
26<td class='online-navigation'><a rel="parent" title="B.3 Licenses and Acknowledgements"
27 href="node51.html"><img src='../icons/up.png'
28 border='0' height='32' alt='Up One Level' width='32' /></A></td>
29<td class='online-navigation'><a rel="next" title="B.3.2 Sockets"
30 href="node53.html"><img src='../icons/next.png'
31 border='0' height='32' alt='Next Page' width='32' /></A></td>
32<td align="center" width="100%">Extending and Embedding the Python Interpreter</td>
33<td class='online-navigation'><a rel="contents" title="Table of Contents"
34 href="contents.html"><img src='../icons/contents.png'
35 border='0' height='32' alt='Contents' width='32' /></A></td>
36<td class='online-navigation'><img src='../icons/blank.png'
37 border='0' height='32' alt='' width='32' /></td>
38<td class='online-navigation'><img src='../icons/blank.png'
39 border='0' height='32' alt='' width='32' /></td>
40</tr></table>
41<div class='online-navigation'>
42<b class="navlabel">Previous:</b>
43<a class="sectref" rel="prev" href="node51.html">B.3 Licenses and Acknowledgements</A>
44<b class="navlabel">Up:</b>
45<a class="sectref" rel="parent" href="node51.html">B.3 Licenses and Acknowledgements</A>
46<b class="navlabel">Next:</b>
47<a class="sectref" rel="next" href="node53.html">B.3.2 Sockets</A>
48</div>
49<hr /></div>
50</DIV>
51<!--End of Navigation Panel-->
52
53<H2><A NAME="SECTION009310000000000000000">
54B.3.1 Mersenne Twister</A>
55</H2>
56
57<P>
58The <tt class="module">_random</tt> module includes code based on a download from
59<a class="url" href="http://www.math.keio.ac.jp/~matumoto/MT2002/emt19937ar.html">http://www.math.keio.ac.jp/~matumoto/MT2002/emt19937ar.html</a>.
60The following are the verbatim comments from the original code:
61
62<P>
63<div class="verbatim"><pre>
64A C-program for MT19937, with initialization improved 2002/1/26.
65Coded by Takuji Nishimura and Makoto Matsumoto.
66
67Before using, initialize the state by using init_genrand(seed)
68or init_by_array(init_key, key_length).
69
70Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
71All rights reserved.
72
73Redistribution and use in source and binary forms, with or without
74modification, are permitted provided that the following conditions
75are met:
76
77 1. Redistributions of source code must retain the above copyright
78 notice, this list of conditions and the following disclaimer.
79
80 2. Redistributions in binary form must reproduce the above copyright
81 notice, this list of conditions and the following disclaimer in the
82 documentation and/or other materials provided with the distribution.
83
84 3. The names of its contributors may not be used to endorse or promote
85 products derived from this software without specific prior written
86 permission.
87
88THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
89"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
90LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
91A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
92CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
93EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
94PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
95PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
96LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
97NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
98SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
99
100
101Any feedback is very welcome.
102http://www.math.keio.ac.jp/matumoto/emt.html
103email: matumoto@math.keio.ac.jp
104</pre></div>
105
106<P>
107
108<DIV CLASS="navigation">
109<div class='online-navigation'>
110<p></p><hr />
111<table align="center" width="100%" cellpadding="0" cellspacing="2">
112<tr>
113<td class='online-navigation'><a rel="prev" title="B.3 Licenses and Acknowledgements"
114 href="node51.html"><img src='../icons/previous.png'
115 border='0' height='32' alt='Previous Page' width='32' /></A></td>
116<td class='online-navigation'><a rel="parent" title="B.3 Licenses and Acknowledgements"
117 href="node51.html"><img src='../icons/up.png'
118 border='0' height='32' alt='Up One Level' width='32' /></A></td>
119<td class='online-navigation'><a rel="next" title="B.3.2 Sockets"
120 href="node53.html"><img src='../icons/next.png'
121 border='0' height='32' alt='Next Page' width='32' /></A></td>
122<td align="center" width="100%">Extending and Embedding the Python Interpreter</td>
123<td class='online-navigation'><a rel="contents" title="Table of Contents"
124 href="contents.html"><img src='../icons/contents.png'
125 border='0' height='32' alt='Contents' width='32' /></A></td>
126<td class='online-navigation'><img src='../icons/blank.png'
127 border='0' height='32' alt='' width='32' /></td>
128<td class='online-navigation'><img src='../icons/blank.png'
129 border='0' height='32' alt='' width='32' /></td>
130</tr></table>
131<div class='online-navigation'>
132<b class="navlabel">Previous:</b>
133<a class="sectref" rel="prev" href="node51.html">B.3 Licenses and Acknowledgements</A>
134<b class="navlabel">Up:</b>
135<a class="sectref" rel="parent" href="node51.html">B.3 Licenses and Acknowledgements</A>
136<b class="navlabel">Next:</b>
137<a class="sectref" rel="next" href="node53.html">B.3.2 Sockets</A>
138</div>
139</div>
140<hr />
141<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
142</DIV>
143<!--End of Navigation Panel-->
144<ADDRESS>
145See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
146</ADDRESS>
147</BODY>
148</HTML>