code: public static String getSentence(int maxNumWords, boolean startLorem) {
          // number of words varies between 3 and 15
          int wordCount = QuickUtils.math.getRandomInteger(3, maxNumWords);
          List<String> words = getWords(wordCount, startLorem);
  
          // run trough string, add commas every 3-10 words
          int i = 0;
          while (i < wordCount) {
              // decide a jump 3-end words
              i += QuickUtils.math.getRandomInteger(3, wordCount);
              if (i < wordCount - 1) {
                  words.set(i, words.get(i) + ",");
              }
          }
  
          // add end puntuation - rand between '.', '!' and '?'.
          // '.' has most possibility of coming out
          char end = '.';
          switch (QuickUtils.math.getRandomInteger(10)) {
              case 9:
                  end = '?';
                  break;
              case 8:
                  end = '!';
                  break;
          }
          words.set(wordCount - 1, words.get(wordCount - 1) + end);
          String raw = implode(words.toArray(new String[words.size()]), " ");
          return capitalize(raw);
      }
docs: Returns a randomly generated sentence of lorem ipsum text. <br/>
  The first word is capitalized, and the sentence ends in either a
  period, exclamation mark or question mark. Commas are added at
  random.
  
  @param maxNumWords the length of the word
  @param startLorem  whether to start with standard lorem ipsum text or not
  @return generated sentence, with punctuation