n class="n">n</span><span class="p">]</span> <span class="o">+=</span> <span class="n">pdf</span>
                <span class="n">index</span> <span class="o">+=</span> <span class="n">n</span>
            <span class="k">elif</span> <span class="n">dist_type</span> <span class="o">==</span> <span class="s2">&quot;discrete&quot;</span><span class="p">:</span>
                <span class="n">n</span> <span class="o">=</span> <span class="n">prop</span><span class="p">[</span><span class="s2">&quot;n&quot;</s