RandomMt19937_64 class

A Random implementation that uses MersenneTwister (MT19937) as a source for pseudo-random numbers.

Inheritance

Constructors

RandomMt19937_64({Object? seed})
Constructs a RandomMt19937_64 with an optional seed.
factory

Properties

exclusiveMax BigInt
The exclusive maximum value returnable by generator.
finalinherited
generator BigInt Function()
The raw random number generator.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

nextBigInt(BigInt max) BigInt
Returns the next BigInt in the range [0, max).
inherited
nextBool() bool
Generates a random boolean value.
inherited
nextDouble() double
Generates a non-negative 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
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