KissRandom class Null safety

A pseudo random generator from George Marsaglia. https://de.wikipedia.org/wiki/KISS_(Zufallszahlengenerator) The algorithm is modified to support JavaScript ("Web") with float arithmetic only:

Inheritance

Constructors

KissRandom(BaseLogger logger)

Properties

addParam int
read / write
c int
read / write
factorParam int
read / write
factorParam2 int
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
read / write, inherited
logger BaseLogger
final, inherited
resetState List<int>
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
x int
read / write
y int
read / write
z int
read / write

Methods

byteList(int length) List<int>
Returns a list of random bytes with a given length.
inherited
maskFactor(int factor) int
Removes the most significant bits from an multiply operand. Needed on restricted arithmetic.
override
maskOperand(int operand) int
Removes the most significant bits from an addition operand. Needed on restricted arithmetic.
override
next() int
Calculates the next seed.
override
nextDouble() double
Returns a random double with 0 <= rc < 1.
inherited
nextInt({int max = MaxInt, int min = 0}) int
Returns a random integer with 0 <= rc < max.
inherited
nextString(int length, [CharClass charClass = CharClass.chars96, String? charList]) String
Returns a random string with a given length. charClass: defines the characters of the result. charList is null or a string with all allowed characters. @throws FormatException if charClass is custom and charList is null.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
reset() → void
Sets the state to a well known state: the start state or the state of the last call of setStart()
inherited
restoreState(List<int> list) → void
override
saveState() List<int>
override
setResetState() → void
Sets the state used in reset(). Must be called in the constructor of each overloading class.
inherited
setSeed(String passphrase) → void
override
toString() String
A string representation of this object. [...]
inherited

Operators

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

Constants

FactorMask → const int
0x3ffffff
IntMask → const int
0xffffffff