public static String getRandomString(Random random, int minLen, int maxLen)
    {
        StringBuilder s = new StringBuilder();
        int length = minLen + random.nextInt(maxLen - minLen + 1);
        for (int i=0; i < length; i++)
        {
            s.append(getRandomChar(random, i == 0));
        }
        return s.toString();
    }
public static String getRandomString ( Random random , int minLen , int maxLen ) { StringBuilder s = new StringBuilder ( ) ; int length = minLen + random . nextInt ( maxLen - minLen + 1 ) ; for ( int i = 0 ; i < length ; i ++ ) { s . append ( getRandomChar ( random , i == 0 ) ) ; } return s . toString ( ) ; }
@param random Random instance
@param minLen minimum number of characters
@param maxLen maximum number of characters
@return String of alphabetical characters, with the first character uppercase (Proper case strings).