generateRandomStringBetweenLetters method
Implementation
String generateRandomStringBetweenLetters(
String startLetter, String endLetter, int length) {
final start = startLetter.toLowerCase().codeUnitAt(0);
final end = endLetter.toLowerCase().codeUnitAt(0);
final range = end - start + 1;
return String.fromCharCodes(
List.generate(length, (_) => _random.nextInt(range) + start),
);
}