section id="method">
<h2>Method<a class="headerlink" href="#method" title="Link to this heading"></a></h2>
<p>We use a linear congruential generator of the following form:</p>
<div class="math notranslate nohighlight">
\[X_{n+1} = (aX_n + c)\quad \mathrm{mod}\; m\]</div>
<p>with the following constants</p>
<div class="math notranslate nohighlight">
\[\begin{split}a = 1103515245, \\
c = 12345, \\
m = 2^{31}.\end{split}\]</div>
<p>According to Wikipedia, this is the same as used in glibc.</p>
<p>The LCG is