code: public String nextSentence(int maxChars) {
  		for(int i = 0; i < 1000; i++) {
  			String sentence = nextSentence();
  			if(sentence.length() <= maxChars) {
  				return sentence;
  			}
  		}
  		throw new IllegalArgumentException("Unable to generate sentence smaller than " + maxChars + "characters. Try setting it higher.");
  	}
docs: Returns a sentence guaranteed to not be any loner than the specified
  number of characters. Will generate a complete sentence - if the
  generator is not able to generate a complete sentence under the limit
  after a number of attempts it will throw an {@link IllegalArgumentException}
  and give up.
  
  @param maxChars the maximum number of characters to return
  @return a sentence no longer than the specified number of characters
  @throws IllegalArgumentException if unable to generate a sentence that short after a number of attempts