randomString method
Generates a random string of specified length from the given character set.
Parameters:
data: The character set to use for generating the string.max: The length of the generated string.seed: Seed for the random number generator. Default is null.
Example:
String randomString = 'abc123'.randomString(max: 8, seed: 42);
// Result: Random string of length 8 using characters 'a', 'b', 'c', '1', '2', '3'.
Implementation
String randomString({int? max, int? seed}) {
return RandomProvider.string(this, max: max, seed: seed);
}