use rand::RngExt;

const TIPS: &str = include_str!("../cool_tips.txt");

pub fn get_random_tip() -> &'static str {
    let tips: Vec<&str> = TIPS.lines().collect();
    if tips.is_empty() {
        return "";
    }

    let random_index = rand::rng().random_range(0..tips.len());
    tips[random_index]
}
