-negative, e.g.,</p>
<pre><code>  if (is_nan(mu) || is_infinite(mu))
    reject(&quot;my_normal_rng: mu must be finite; &quot;,
           &quot;found mu = &quot;, mu);
  if (is_nan(sigma) || is_infinite(sigma) || sigma &lt; 0)
    reject(&quot;my_normal_rng: sigma must be finite and non-negative; &quot;,
           &quot;found sigma = &quot;, sigma);</code></pre>
</div>
<div id="truncated-variate-generation" class="section level3 unnumbered">
<h3>Truncated variate generation</h3>
<p>Often truncated uniform