Function pick_one::pick_one_str
[−]
[src]
pub fn pick_one_str<'a>(collection: &'a [&'static str]) -> &'a str
Pick a random str from an Array of str
Example
let example = ["doggo", "pupper", "smol", "<3"]; assert_eq!(pick_one_str(&example), "doggo");