names

Function rand_lowercase

Source
pub fn rand_lowercase() -> &'static str
Expand description

Selects a random name out of *all* available lowercase names.

Note that this dependent on which features are given. For example, if only the three-feature is given, this will only return three-letter names.

§Returns

A &'static str that refers to a random constant in this crate.

§Example

use names::rand_lowercase;

// Could print any of the `amy`, `bob`, `cho`, ... names!
println!("{}", rand_lowercase());