RandomProvider class

A utility class for generating random values.

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

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

Static Methods

getInt({required int max, int min = 0, int? seed}) int
Generates a random integer within the specified range.
getList<T>({required List<T> data, required int size, int min = 0, int? seed}) List<T>
Generates a list of random values from the provided list.
getString({required String data, required int max, int? seed}) String
Generates a random string of specified length from the given character set.
getValue<T>({required List<T> data, required int max, int min = 0, int? seed}) → T?
Retrieves a random value from the provided list.