code: public String getRandomWord(final int length, final boolean exactLength) {
      if (exactLength) {
        return getRandomWord(length, length);
      }
      return getRandomWord(0, length);
    }
docs: Returns a valid word with a length of up to <code>length</code> characters. If the <code>exactLength</code>
  parameter is set, then the word will be exactly <code>length</code> characters in length.
  
  @param length maximum length of the returned string
  @param exactLength indicates if the word should have a length of <code>length</code>
  @return a string with a length that matches the specified parameters.