Function alet::choice

source ·
pub fn choice<T>(seq: &[T]) -> &T
Expand description

Picks a random element from a sequence and returns a reference to it