Function sample

Source
pub fn sample<T: Clone, const N: usize>(array: &[T; N]) -> T