public static String generateRandomString(){
  final String characters="abcdefghijklmnopqrstuvwxyz123456789";
  final int length=generateRandomNumber();
  final char[] text=new char[length];
  for (int i=0; i < length; i++) {
    text[i]=characters.charAt(random.nextInt(characters.length()));
  }
  return new String(text);
}

public static String generateRandomString ( ) { final String characters = "abcdefghijklmnopqrstuvwxyz123456789" ; final int length = generateRandomNumber ( ) ; final char [ ] text = new char [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { text [ i ] = characters . charAt ( random . nextInt ( characters . length ( ) ) ) ; } return new String ( text ) ; }
generate a random string
