<divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-stat:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword">abstract </span><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="next-int.html"><spanclass="token function">nextInt</span></a><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Gets the next random <codeclass="lang-kotlin">Int</code> from the random number generator.</p><pclass="paragraph">Generates an <codeclass="lang-kotlin">Int</code> random value uniformly distributed between <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/-m-i-n_-v-a-l-u-e.html">Int.MIN_VALUE</a> and <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/-m-a-x_-v-a-l-u-e.html">Int.MAX_VALUE</a> (inclusive).</p><br><divclass="symbol monospace"><spanclass="token keyword">abstract </span><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="next-int.html"><spanclass="token function">nextInt</span></a><spanclass="token punctuation">(</span>until<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Gets the next random non-negative <codeclass="lang-kotlin">Int</code> from the random number generator less than the specified <ahref="next-int.html">until</a> bound.</p><pclass="paragraph">Generates an <codeclass="lang-kotlin">Int</code> random value uniformly distributed between <codeclass="lang-kotlin">0</code> (inclusive) and the specified <ahref="next-int.html">until</a> bound (exclusive).</p></div></div>