Skip to main content

pick

Function pick 

Source
pub fn pick<T>(items: &[T], seed: u64) -> &T
Expand description

Deterministic selection from a slice using a seed value.

Same seed always returns the same element.