<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></div>
<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-stat:dokkaHtmlPartial/jvmMain"><divclass="symbol monospace">open override fun <ahref="next-int.html">nextInt</a>(n: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>): <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></div></div>
</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="platform-hinted WithExtraAttributes"data-platform-hinted="data-platform-hinted"data-togglable="Parameters"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-stat:dokkaHtmlPartial/jvmMain"><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">n</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></div></div>