<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-bytes.html"><spanclass="token function">nextBytes</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">bytes<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></span></span><spanclass="token punctuation">)</span><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-stat/src/jvmMain/kotlin/space/kscience/kmath/stat/RandomSourceGenerator.kt#L66">source</a>)</span></span></div><pclass="paragraph">Generates <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html">Byte</a> values and places them into a user-supplied array.</p><pclass="paragraph">The number of random bytes produced is equal to the length of the byte array.</p><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>bytes</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">byte array in which to put the random bytes.</p></div></div></div></div></div><hr><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">override </span><spanclass="token keyword">fun </span><ahref="next-bytes.html"><spanclass="token function">nextBytes</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">bytes<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">start<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">len<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="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-stat/src/jvmMain/kotlin/space/kscience/kmath/stat/RandomSourceGenerator.kt#L78">source</a>)</span></span></div><pclass="paragraph">Generates <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html">Byte</a> values and places them into a user-supplied array.</p><pclass="paragraph">The array is filled with bytes extracted from random integers. This implies that the number of random bytes generated may be larger than the length of the byte array.</p><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>bytes</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">the array in which to put the generated bytes.</p></div></div></div></div><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>start</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">the index at which to start inserting the generated bytes.</p></div></div></div></div><divclass="table-row"data-filterable-current=":kmath-stat:dokkaHtmlPartial/jvmMain"data-filterable-set=":kmath-stat:dokkaHtmlParti