Random class Null safety
A generator of random bool, int, or double values.
The default implementation supplies a stream of pseudo-random bits that are not suitable for cryptographic purposes.
Use the Random.secure constructor for cryptographic purposes.
) → bool
- Generates a random boolean value.
) → double
- Generates a non-negative random floating point value uniformly distributed in the range from 0.0, inclusive, to 1.0, exclusive.
int max) → int
Generates a non-negative random integer uniformly distributed in the range
from 0, inclusive, to
max, exclusive. [...]
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
A string representation of this object. [...]