getRandomClientId function

String getRandomClientId()

Implementation

String getRandomClientId() {
  Random random = Random();
  String chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
  String randomString = '';

  for (int i = 0; i < 10; i++) {
    randomString += chars[random.nextInt(chars.length)];
  }

  return randomString.toUpperCase();
}