Trait neat::GenerateRandom

source ·
pub trait GenerateRandom {
    // Required method
    fn gen_random(rng: &mut impl Rng) -> Self;
}
Expand description

Helper trait used in the generation of random starting populations

Required Methods§

source

fn gen_random(rng: &mut impl Rng) -> Self

Create a completely random instance of the entity

Object Safety§

This trait is not object safe.

Implementors§