Randomizer class

A wrapper around Random that provides controlled random number generation with the ability to reset to a known seed.

Constructors

Randomizer({int seed = 0})

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed int
The seed used for random number generation.
no setter

Methods

next() double
Returns the next random double in the range [0.0, 1.0).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets the random number generator to its initial state.
toString() String
A string representation of this object.
inherited

Operators

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