Does an electric slot machine have a table which determines the odds of getting particular combinations or does it determine if somebody wins and then picks a combination that produces the result?

Example of the first. Suppose two cherries in any of two (of three) columns is a $1 win. And we want the player to have a 1% chance of getting this result.

Cherry / Cherry / Anything - Odds 0.33%

Cherry / Anything / Cherry - Odds 0.33%

Anything / Cherry / Cherry - Odds 0.33%

Then it picks “anything” at random (excluding cherry) for the last spot.

I suppose this could be a fully enumerated table as well. Assuming the other available symbols are Bell, Seven and Lemon:

Cherry / Cherry / Bell - Odds 0.11%

Cherry / Bell / Cherry - Odds 0.11%

Bell / Cherry / Cherry - Odds 0.11%

Cherry / Cherry / Seven - Odds 0.11%

Cherry / Seven / Cherry - Odds 0.11%

Seven / Cherry / Cherry - Odds 0.11%

Cherry / Cherry / Lemon - Odds 0.11%

Cherry / Lemon / Cherry - Odds 0.11%

Lemon / Cherry / Cherry - Odds 0.11%

Example of the second.

$1 Payout - Odds 1% -> Produces a proper result.

No, I’m not planning a trip to a casino, just one of those random thoughts that pops into my head.