Slot machine programs are based on mathematical terms or logics like randomness, permutations, and combinations which makes it impossible to predict when a slot machine will hit. Slot outcomes or results are determined by random number generators, making predictions unpredictable.