pub fn toss_rocks(&self) -> u32 {
        let income = rand::thread_rng().gen_range(0..50);
        let income = if income < 10 { 0 } else { income };
        let mut state = self.state.lock().unwrap();
        state.money += income;
        income
    }
/// Manually increase money; 1/5 chance of getting nothing
Manually increase money; 1/5 chance of getting nothing
Manually increase money ; 1 / 5 chance of getting nothing
pub fn toss_rocks(&self) -> u32 {
        let income = rand::thread_rng().gen_range(0..50);
        let income = if income < 10 { 0 } else { income };
        let mut state = self.state.lock().unwrap();
        state.money += income;
        income
    }
pub fn toss_rocks ( & self ) -> u32 { let income = rand :: thread_rng ( ) . gen_range ( 0 .. 50 ) ; let income = if income < 10 { 0 } else { income } ; let mut state = self . state . lock ( ) . unwrap ( ) ; state . money += income ; income }
Manually increase money; 1/5 chance of getting nothing
Manually increase money ; 1 / 5 chance of getting nothing
&self
&self