cqtsRandomString function

String cqtsRandomString(
  1. int minLength,
  2. int maxLength,
  3. CQRipeStringType stringType
)

Implementation

String cqtsRandomString(
  int minLength,
  int maxLength,
  CQRipeStringType stringType,
) {
  Iterable<int> charCodes = Iterable.generate(
    maxLength,
    (_) {
      return _chars.codeUnitAt(_rnd.nextInt(_chars.length));
    },
  );
  return String.fromCharCodes(
    charCodes,
    minLength,
    maxLength,
  );
}