ria-hidden="true" tabindex="-1"></a>    <span class="dt">vector</span>[N] theta = rep_vector(<span class="fl">1.0</span> / N, N);</span>
<span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a>    <span class="cf">for</span> (n <span class="cf">in</span> <span class="dv">1</span> : size(y)) {</span>
<span id="cb3-9"><a href="#cb3-9" aria-hidden="true" tabindex="-1"></a>      <span class="dt">int</span> i = categorical_rng(theta);</span>
<span id="cb3-10"><a href="#cb3-10" aria-hidden="true" t