<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-long.html"><spanclass="token function">nextLong</span></a><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</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#L28">source</a>)</span></span></div><pclass="paragraph">Gets the next random <codeclass="lang-kotlin">Long</code> from the random number generator.</p><pclass="paragraph">Generates a <codeclass="lang-kotlin">Long</code> random value uniformly distributed between <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/-m-i-n_-v-a-l-u-e.html">Long.MIN_VALUE</a> and <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/-m-a-x_-v-a-l-u-e.html">Long.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-long.html"><spanclass="token function">nextLong</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">until<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</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#L29">source</a>)</span></span></div><pclass="paragraph">Gets the next random non-negative <codeclass="lang-kotlin">Long</code> from the random number generator less than the specified <ahref="next-long.html">until</a> bound.</p><pclass="paragraph">Generates a <codeclass="lang-kotlin">Long</code> random value uniformly distributed between <codeclass="lang-kotlin">0</code> (inclusive) and the specified <ahref="next-long.html">until</a> bound (exclusive).</p></div></div>