/* Resets a random_line by calculating new end, dur, and increment values */
Resets a random_line by calculating new end, dur, and increment values
Resets a random_line by calculating new end dur and increment values
fn random_line_reset(rline: &mut random_line) {
    rline.dur = (rand::random::<i32>() % 256) + 256;
    rline.end = rand::random::<f64>();
    rline.increment = (rline.end - rline.current_val) / (rline.dur as f64);
}
fn random_line_reset ( rline : & mut random_line ) { rline . dur = ( rand :: random :: < i32 > ( ) % 256 ) + 256 ; rline . end = rand :: random :: < f64 > ( ) ; rline . increment = ( rline . end - rline . current_val ) / ( rline . dur as f64 ) ; }
Resets a random_line by calculating new end, dur, and increment values
Resets a random_line by calculating new end dur and increment values
rline
&mut random_line