Function lipsum::lipsum_words_from_seed
source · [−]Expand description
Generate n
random words of lorem ipsum text. The seed makes the sequence
deterministic.
Deterministic sequences are useful for unit tests where you need random but consistent inputs or when users expect an infinitely extendable blind text string that does not change.
Examples
use lipsum::lipsum_words_from_seed;
assert_eq!(lipsum_words_from_seed(7, 1234),
"Anteponant iis, quae recordamur. Stulti autem malorum.");