stri_rand_lipsum(nparagraphs, start_lipsum = TRUE)
nparagraphs
.Current implementation is very simple: words are selected randomly from a Zipf distribution (we base on a set of ca. 190 predefined Latin words). Number of words per sentence and sentences per paragraph follows a discretized, truncated normal distribution. No Markov chain modeling, just i.i.d. word selection.
stri_rand_shuffle
;
stri_rand_strings
cat(sapply(
stri_wrap(stri_rand_lipsum(10), 80, simplify=FALSE),
stri_flatten, collapse="\n"), sep="\n\n")
cat(stri_rand_lipsum(10), sep="\n\n")
Run the code above in your browser using DataLab