Function goose_eggs::text::random_word [−][src]
pub fn random_word(length: usize) -> String
Expand description
Generate a random “word” of the specified length of random alphanumeric characters.
Example
use goose_eggs::text::random_word;
// Generate a random "word" comprised of 10 alphanumeric characters.
let word = random_word(10);
assert_eq!(word.len(), 10);