zengine/doc/html/mt19937ar_8h-source.html
2003-04-28 02:00:38 +00:00

38 lines
3.1 KiB
HTML
Executable File

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>/include/external/mt19937ar.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3-rc2 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>/include/external/mt19937ar.h</h1><div class="fragment"><pre>00001 <span class="preprocessor">#ifndef __mt19937ar__</span>
00002 <span class="preprocessor"></span><span class="preprocessor">#define __mt19937ar__</span>
00003 <span class="preprocessor"></span>
00004 <span class="comment">//This .h file written for ZEngine by James Turk to declare the methods implemented in mt19937ar.c</span>
00005 <span class="comment">//See mt19937ar.c for license of the Mersenne Twister.</span>
00006
00007 <span class="preprocessor">#include &lt;cstdio&gt;</span> <span class="comment">//changed for ZEngine</span>
00008 <span class="comment">/* Period parameters */</span>
00009 <span class="preprocessor">#define N 624</span>
00010 <span class="preprocessor"></span><span class="preprocessor">#define M 397</span>
00011 <span class="preprocessor"></span><span class="preprocessor">#define MATRIX_A 0x9908b0dfUL </span><span class="comment">/* constant vector a */</span>
00012 <span class="preprocessor">#define UPPER_MASK 0x80000000UL </span><span class="comment">/* most significant w-r bits */</span>
00013 <span class="preprocessor">#define LOWER_MASK 0x7fffffffUL </span><span class="comment">/* least significant r bits */</span>
00014
00015 <span class="keywordtype">void</span> init_genrand(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> s);
00016 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> genrand_int32(<span class="keywordtype">void</span>);
00017 <span class="keywordtype">long</span> genrand_int31(<span class="keywordtype">void</span>);
00018 <span class="keywordtype">double</span> genrand_real1(<span class="keywordtype">void</span>);
00019 <span class="keywordtype">double</span> genrand_real2(<span class="keywordtype">void</span>);
00020 <span class="keywordtype">double</span> genrand_real3(<span class="keywordtype">void</span>);
00021 <span class="keywordtype">double</span> genrand_res53(<span class="keywordtype">void</span>);
00022
00023 <span class="preprocessor">#endif //__mt19937ar__</span>
</pre></div><hr><address style="align: right;"><small>Generated on Sun Apr 27 21:57:34 2003 for ZEngine by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.3-rc2 </small></address>
</body>
</html>