names

Function rand

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

Selects a random name out of *all* available names (including UPPERCASE, Usualcase and lowercase).

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;

// Could print any of the `AMY`, `Bob`, `cho`, ... names!
println!("{}", rand());