Skip to content

sentence

sentence(length: int = 10, vary_length: bool = True) -> str

Generate a random sentence.

  • Locale dependent

Arguments

Param Type Default Description
length int 10 Number of words in the sentence. Defaults to 10.
vary_length bool True Randomize word count around the target length.

Returns str