MathRNG class Null safety

Math.Random()-based RNG. All platforms, fast, not cryptographically strong. Optional seed can be passed on creation.

Inheritance

Constructors

MathRNG({int seed = -1})
const

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
seed → int
final

Methods

generate() → Uint8List
inherited
generateInternal() → Uint8List
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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