use rand::Rng;

pub fn getTemp() -> (u16, u16) {
    let mut rng = rand::thread_rng();
    let f_temp = rng.gen_range(356..572);
    let c_temp = ((f_temp as f32 - 32.0) * 0.5556) as u16;
    
    return (f_temp, c_temp)
}

pub fn getMeter() -> (f32, f32) {
    let mut rng = rand::thread_rng();
    let voltage = rng.gen_range(3.0..4.1);
    let resistance = voltage / rng.gen_range(0.85..1.05);

    return (voltage, resistance)
}