public static String generateStringOfCharacters(int count){
  StringBuilder sb=new StringBuilder();
  for (int i=0; i < count; i++) {
    sb.append(CHARACTERS.charAt((int)(Math.random() * CHARACTERS.length())));
  }
  return sb.toString();
}

public static String generateStringOfCharacters ( int count ) { StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < count ; i ++ ) { sb . append ( CHARACTERS . charAt ( ( int ) ( Math . random ( ) * CHARACTERS . length ( ) ) ) ) ; } return sb . toString ( ) ; }
creates a random string which only consists of letters
