SeededRandomProvider class
Provider using a seeded random number generator for deterministic behavior.
Example:
final provider = SeededRandomProvider(12345);
print(provider.nextDouble()); // Deterministic output
- Implemented types
Constructors
- SeededRandomProvider(int seed)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
nextDouble(
) → double -
Returns a random double in the range [0.0, 1.0).
override
-
nextInt(
int max) → int -
Returns a random integer in the range [0, max).
override
-
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