[][src]Function dicetest::dice::one_of_vec_once

pub fn one_of_vec_once<T>(
    values: Vec<T>
) -> impl DieOnce<T>

Generates a element randomly chosen from the given Vec. All elements have the same probability.