class Xoshiro256StarStar
source · line 24public
public class Xoshiro256StarStar private constructor(state: (ULong, ULong, ULong, ULong)) : Random
- Supertype
Random - Inherited
fun nextBoolean(): Boolean· Random - Inherited
fun nextBytes(size: Long): Array<Int8>· Random - Inherited
fun nextBytes(array: MutableArray<Int8>, fromIndex: Long = …, toIndex: Long = …): MutableArray<Int8>· Random - Inherited
fun nextDouble(): Double· Random - Inherited
fun nextFloat(): Float· Random - Inherited
fun nextInt(): Int· Random - Inherited
fun nextInt(until: Int): Int· Random - Inherited
fun nextInt(from: Int, until: Int): Int· Random - Inherited
fun nextLong(): Long· Random - Inherited
fun nextLong(until: Long): Long· Random - Inherited
fun nextLong(from: Long, until: Long): Long· Random - Inherited
fun nextUInt(): UInt· Random - Inherited
fun nextUInt(until: UInt): UInt· Random - Inherited
fun nextUInt(from: UInt, until: UInt): UInt· Random - Inherited
fun nextULong(): ULong· Random - Inherited
fun nextULong(until: ULong): ULong· Random - Inherited
fun nextULong(from: ULong, until: ULong): ULong· Random
A deterministic xoshiro256** generator initialized from a Long seed. It is intended for repeatable randomized algorithms, not cryptographic secrets.
function nextBits
source · line 36public
public override fun nextBits(bitCount: Int): Int
- Overrides
nextBits· Random
Returns 0..32 high bits of the next generator output in the result's low bits. A zero count returns zero without advancing the generator; counts outside this range throw.
parameter bitCount
source · line 36public
bitCount: Int
constructor constructor
source · line 30public
constructor(seed: Long)
parameter seed
source · line 30public
seed: Long