lipsum

Function lipsum

Source
pub fn lipsum(n: usize) -> String
Expand description

Generate n words of lorem ipsum text. The output will always start with “Lorem ipsum”.

The text continues with the standard lorem ipsum text from LOREM_IPSUM and becomes random if more than 18 words is requested. See lipsum_words if fully random text is needed.

§Examples

use lipsum::lipsum;

assert_eq!(lipsum(7), "Lorem ipsum dolor sit amet, consectetur adipiscing.");