Function m_ipd::strategies::axelrod::random [−][src]
pub fn random(p: f32) -> Box<dyn FnMut(Round) -> Choice>
Plays randomly with probability p
.
This must be used like || random(0.5)
instead of random
since the Strategy
type
does not allow for taking a parameter.