.html">sum_of</a></span>(<span class="no">self</span>$<span class="no">theta</span>$<span class="no">n</span>) <span class="kw">&lt;</span> <span class="no">self</span>$<span class="no">first</span>) {
        <span class="no">action</span>$<span class="no">choice</span>           <span class="kw">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/sample.html">sample.int</a></span>(<span class="no">context</span>$<span class="no">k</span>, <span class="fl">1</span>, <span class="kw">replace</span