frost.math

Class XorShift128Plus

    └ Object

Implemented Interfaces:

A fast pseudorandom number generator using a XorShift+ algorithm with a period of 2^128 - 1.

This generator is guaranteed to always produce the same random sequence when started from the same seed, even across different environments and versions of Frost.

Source Code:
View Source

Initializer Summary

init(seed:Int64)
Creates a new XorShift128Plus with a specific seed.
Inherited Fields:

Instance Method Summary

int64():Int64
Returns a random number between Int64.MIN and Int64.MAX, inclusive.
Inherited Methods:

Initializers

init (seed:Int64)

Creates a new XorShift128Plus with a specific seed. All XorShift128Plus instances created with the same seed will return the same sequence of pseudorandom numbers.

Parameters:
seed - the seed to use

Instance Methods

@override
method int64 ():Int64

Returns a random number between Int64.MIN and Int64.MAX, inclusive.

Overrides:
frost.math.Random.int64