Slot machines determine odds through their internal programming and a random number generator (RNG) that randomizes the outcome of each spin. Each machine has specific odds reflecting the probability of various symbol combinations, which is linked to its payout percentage designed to ensure a consistent return to the casino. The RNG operates continuously, guaranteeing each spin is independent and random.