random_word 0.3.0

Reliable and efficient functions for generating random english words
Documentation

random_word

The random_word crate provides an efficient way to generate random english words.

All words are compiled with the library pre-sorted, 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();