RandomXS128

constructor()

Creates a new random number generator. This constructor sets the seed of the random number generator to a value very likely to be distinct from any other invocation of this constructor.

This implementation creates a Random instance to generate the initial seed.


constructor(seed: Long)

Creates a new random number generator using a single long seed.

Parameters

seed

the initial seed


constructor(seed0: Long, seed1: Long)

Creates a new random number generator using two long seeds.

Parameters

seed0

the first part of the initial seed

seed1

the second part of the initial seed