10 releases
new 0.3.1 | May 28, 2023 |
---|---|
0.3.0 | Nov 4, 2022 |
0.2.6 | Nov 3, 2022 |
0.2.0 | Oct 31, 2022 |
0.1.1 | Oct 22, 2022 |
#212 in Algorithms
4,322 downloads per month
Used in 2 crates
475KB
823 lines
random_word
The random_word
crate provides an efficient way to generate random
english words.
All words are compiled with the library. This crate is optimized for lookup speed.
Generating a random word
let word = random_word::gen();
Generating a random word starting with 'c'
let word = random_word::gen_starts_with('c');
assert!(word.is_some());
Get all available words
let word_list = random_word::all();
lib.rs
:
random_word
The random_word
crate provides an efficient way to generate random
english words.
All words are compiled pre-sorted with the library, optimized for fast, zero allocation lookup.
Generating a random word
let word = random_word::gen();
Generating a random word starting with 'c'
let word = random_word::gen_starts_with('c');
assert!(word.is_some())
Get all available words
let word_list = random_word::all();