Function pick

Source
pub fn pick<T: Debug>(input: &[T]) -> &T
Expand description

Select a random element from the given slice

Panics if the input slice is empty