Skip to content

Commit

Permalink
Decrease the incidence of ,
Browse files Browse the repository at this point in the history
  • Loading branch information
alt-art committed Jul 8, 2021
1 parent 500ba62 commit 8877ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lorem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl Lorem {
while word_count < count {
let word = &self.words[words_range.sample(&mut rng)].to_string();
words.push_str(&word);
if rng.gen_ratio(20,100) && word.len() > 3 {
if rng.gen_ratio(1,10) && word.len() > 3 {
words.push_str(", ")
} else {
words.push_str(" ");
Expand All @@ -75,4 +75,4 @@ impl Lorem {
}
words
}
}
}

0 comments on commit 8877ef3

Please sign in to comment.