random library

Random number utilities.

Classes

RepeatableRandom
Wraps an existing pseudo-random number generator to allow retrieving the existing seed and to allows the random sequence to be easily restarted.

Extensions

RandomUtils on Random
Miscellaneous utility methods for math.Random.

Constants

randMaxInt → const int
The maximum value allowed for Random.nextInt.

Functions

lazyShuffler<T>(List<T> list, {Random? random}) Iterable<T>
Shuffles a List lazily.