public String nextString(int length){
  char[] chars=new char[length];
  for (int i=0; i < chars.length; i++) {
    chars[i]=ALPHABET.charAt(nextInt(ALPHABET.length()));
  }
  return new String(chars);
}

public String nextString ( int length ) { char [ ] chars = new char [ length ] ; for ( int i = 0 ; i < chars . length ; i ++ ) { chars [ i ] = ALPHABET . charAt ( nextInt ( ALPHABET . length ( ) ) ) ; } return new String ( chars ) ; }
returns a random string of the given length .
