Write an algorithm to calculate the probability of a specific outcome in a simplified slot machine or card game.