fn mutate(&self) -> OldState
    {
        let elem_id = rand::thread_rng().gen_range(0, self.vbo.len());
        let old_elem = self.vbo.get(elem_id);
        self.vbo.set(elem_id, rand::random());
        self._mse.set(None);
        OldState{ id: elem_id, val: old_elem }
    }
// mutate a single number in the array
mutate a single number in the array
mutate a single number in the array
fn mutate(&self) -> OldState
    {
        let elem_id = rand::thread_rng().gen_range(0, self.vbo.len());
        let old_elem = self.vbo.get(elem_id);
        self.vbo.set(elem_id, rand::random());
        self._mse.set(None);
        OldState{ id: elem_id, val: old_elem }
    }
fn mutate ( & self ) -> OldState { let elem_id = rand :: thread_rng ( ) . gen_range ( 0 , self . vbo . len ( ) ) ; let old_elem = self . vbo . get ( elem_id ) ; self . vbo . set ( elem_id , rand :: random ( ) ) ; self . _mse . set ( None ) ; OldState { id : elem_id , val : old_elem } }
mutate a single number in the array
mutate a single number in the array
&self
&self