pecial">)</span><span class="special">;</span></pre>
<p>If nw is zero, equivalent to the default constructor. Otherwise, the range of the distribution is [0, nw), and the weights are found by calling fw with values evenly distributed between <span class="inlinemediaobject"><img src="../../../images/random//form_6.png"></span> and <span class="inlinemediaobject"><img src="../../../images/random//form_7.png"></span>, where <span class="inlinemediaobject"><img src="../../../images/random//form_8.png"></span>. 