code: public static String getRandomString(Random rnd, int minLength, int maxLength) {
  		int len = rnd.nextInt(maxLength - minLength + 1) + minLength;
  
  		char[] data = new char[len];
  		for (int i = 0; i < data.length; i++) {
  			data[i] = (char) (rnd.nextInt(0x7fff) + 1);
  		}
  		return new String(data);
  	}
docs: Creates a random string with a length within the given interval. The string contains only characters that
  can be represented as a single code point.
  
  @param rnd The random used to create the strings.
  @param minLength The minimum string length.
  @param maxLength The maximum string length (inclusive).
  @return A random String.