<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#L109">source</a>)</span></span></div><pclass="paragraph">Generates a <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a> value.</p><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">the next random value.</p></span><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 ">n<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#L117">source</a>)</span></span></div><pclass="paragraph">Generates a <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a> value between 0 (inclusive) and the specified value (exclusive).</p><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">a random long value between 0 (inclusive) and <ahref="next-long.html">n</a> (exclusive).</p></span><h4class="">Parameters</h4><divclass="table"><divclass="table-row"data-filterable-current=":kmath-stat:dokkaHtmlPartial/jvmMain"data-filterable-set=":kmath-stat:dokkaHtmlPartial/jvmMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span><span>n</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">Bound on the random number to be returned. Must be positive.</p></div></div></div></div></div></div></div>