CharSequence () { int textLength = myRandom.nextInt(MAX_TEXT_LENGTH); StringBuilder text = new StringBuilder(); for (int j = 0; j < textLength; j++) { text.append(CHARS_TO_USE.charAt(myRandom.nextInt(CHARS_TO_USE.length()))); } return text; }