y are ignored.</p>
<p>For example,</p>
<pre class="programlisting"> double intervals[] = { 0.0, 1.0, 2.0 };
 double weights[] = { 0.0, 1.0, 0.0 };
 piecewise_constant_distribution&lt;&gt; dist(
     &amp;intervals[0], &amp;intervals[0] + 3, &amp;weights[0]);
</pre>
<p>produces a triangle distribution. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span cla