Xorshift128 class

Random number generator based on xorshift128 algorithm by G. Marsaglia.

reference

Inheritance

Constructors

Xorshift128([int? a, int? b, int? c, int? d])

Properties

boolCache int
getter/setter pairinherited
boolCache_prevShift int
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

nextBool() bool
Generates a random boolean value.
inherited
nextDouble() double
Generates a random floating point value uniformly distributed in the range from 0.0, inclusive, to 1.0, exclusive.
inherited
nextFloat() double
Generates a random floating point value uniformly distributed in the range from 0.0, inclusive, to 1.0, exclusive.
inherited
nextInt(int max) int
Generates a non-negative random integer uniformly distributed in the range from 0, inclusive, to max, exclusive.
inherited
nextRaw32() int
Generates a non-negative random integer uniformly distributed in the range from 0 to 0xFFFFFFFF, both inclusive.
override
nextRaw53() int
Generates a non-negative random integer uniformly distributed in the range from 0, inclusive, to 2^63, exclusive.
inherited
nextRaw64() int
Generates a non-negative random integer uniformly distributed in the range from 0 to 2^64-1, both inclusive.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

seeded() Xorshift128