randomSentence: generate a random sentence with n words

View source: R/utils.r

randomSentenceR Documentation

generate a random sentence with n words

Description

generate a random sentence with n words

Usage

randomSentence(n, maxchar = Inf)

Arguments

n

number of word in sentence

maxchar

maximal number of characters per sentence. Note that whole words (not part of words) are excluded if the maximal number is exceeded.

Value

a string with n words (if length is not constrained)

Examples

 
randomSentence(10)   # one random sentence with 10 words

OpenRepGrid documentation built on May 31, 2023, 5:33 p.m.