Trait renforce::util::Chooser [] [src]

pub trait Chooser<T>: Debug {
    fn choose(&self, choices: &Vec<T>, weights: Vec<f64>) -> T;
}

Choose Trait

Represents a way to randomly choose an element of a list given some weights

Required Methods

returns an element of choices

Implementors