Skip to main content

choice

Function choice 

Source
pub fn choice<T: Clone>(items: &[T]) -> Option<T>
Expand description

Choose random element from slice