<divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-stat:dokkaHtmlPartial/jvmMain"><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">override </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">Generates an <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> value.</p><h4class="">Return</h4><pclass="paragraph">the next random value.</p><br><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">override </span><spanclass="token keyword">fun </span><ahref="next-int.html"><spanclass="token function">nextInt</span></a><spanclass="token punctuation">(</span>n<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">Generates an <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> value between 0 (inclusive) and the specified value (exclusive).</p><h4class="">Return</h4><pclass="paragraph">a random integer between 0 (inclusive) and <ahref="next-int.html">n</a> (exclusive).</p><h2class="">Parameters</h2><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":kmath-stat:dokkaHtmlPartial/jvmMain"data-filterable-set=":kmath-stat:dokkaHtmlPartial/jvmMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><div><span><span>n</span></span></div></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">the bound on the random number to be returned. Must be positive.</p></div></div></div></div></div></div></div></div></div>