fn update(&mut self) -> f64 {
        let current_value = self.current_val;
        self.dur -= 1;
        if self.dur <= 0 {
            self.reset();
        }
        self.current_val += self.increment;
        self.base + (current_value * self.range)
    }
/* Advances state of random line and returns current value */
Advances state of random line and returns current value
Advances state of random line and returns current value
fn update(&mut self) -> f64 {
        let current_value = self.current_val;
        self.dur -= 1;
        if self.dur <= 0 {
            self.reset();
        }
        self.current_val += self.increment;
        self.base + (current_value * self.range)
    }
fn update ( & mut self ) -> f64 { let current_value = self . current_val ; self . dur -= 1 ; if self . dur <= 0 { self . reset ( ) ; } self . current_val += self . increment ; self . base + ( current_value * self . range ) }
Advances state of random line and returns current value
Advances state of random line and returns current value
&mut self
&mut self