-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not random #59
Comments
Hi @stuartcrobinson ! Thanks for the question, you raise a good point. The
Because it includes punctionation such as In the meantime, I suggest using |
I am currently using the library at https://flathub.org/apps/org.gnome.design.Lorem, I encountered the problem that when calling
the usecase is to create multiple paragraphs with lengths (in number of words) given from a For reference the code looks like let mut rng = rand::thread_rng();
let texts: Vec<String> = (0..n)
.map(|i| {
let m = rng.gen_range(30..70);
match i {
0 => lipsum::lipsum(m),
_ => lipsum::lipsum_words(m),
}
})
.collect();
texts.join("\n\n") |
i thought it was going to be random text, but it generates the same thing every time per length.
Lorem ipsum dolor sit amet.
Lorem ipsum dolor sit amet.
Lorem ipsum dolor sit amet.
Lorem ipsum dolor sit amet.
The text was updated successfully, but these errors were encountered: