Trait humphrey_server::server::rand::Choose[][src]

pub trait Choose {
    type Item;
    fn choose(&self, lcg: &mut Lcg) -> Option<&Self::Item>;
}
Expand description

Allows random sampling on an object.

Associated Types

Required methods

Selects a random item from the collection.

Implementations on Foreign Types

Implementors