<divclass="content sourceset-dependent-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="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-stat/src/jvmMain/kotlin/space/kscience/kmath/stat/RandomSourceGenerator.kt#L26">source</a>)</span></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><hr><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="parameters "><spanclass="parameter ">until<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-stat/src/jvmMain/kotlin/space/kscience/kmath/stat/RandomSourceGenerator.kt#L27">source</a>)</span></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>