powered by
generate n random sentences with a given or random number of words
randomSentences(n, nwords, maxchar = Inf)
number of sentences to be generate (integer)
number of words per sentence. If vector each sentence lengths is randomly drawn from the vector
maximal number of characters per sentence. Note that whole words (not part of words) are excluded if the maximal number is exceeded.
a vector with n random sentences
# NOT RUN { randomSentences(5, 10) # five random sentences with ten words each randomSentences(5, 2:10) # five random sentences between two and ten words # }
Run the code above in your browser using DataLab