threaded applications, ensure that each thread has its own instance of the Mersenne Twister state.</p>
<h3><a class="anchor" id="autotoc_md38"></a>
Usage</h3>
<p>Before generating random numbers, initialize the state using either <code>init_genrand</code> or <code>init_by_array</code>.</p>
<h3><a class="anchor" id="autotoc_md39"></a>
Example</h3>
<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="mt_8h.html">mt.h</a>&gt;</span></div>
<div class="line"><span