>
                <span class="n">array</span><span class="p">[</span><span class="n">randIndex</span><span class="p">]</span> <span class="o">-=</span> <span class="mi">1</span>
            <span class="c1"># if sum is too small, increase the smallest value</span>
            <span class="k">else</span><span class="p">:</span>
                <span class="n">minIndex</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">argmin</span><span class="p">(</span><span c