If slot machines are random numbers, how can they be programmed to win a certain number of times? How can something be both random and programmed?

1.65K viewsEngineeringOther

If slot machines are random numbers, how can they be programmed to win a certain number of times? How can something be both random and programmed?

In: Engineering

12 Answers

Anonymous 0 Comments

Computers don’t / can’t have truly random numbers. Interesting video

They use pseudo random numbers and these pseudo random numbers the odds of which can be controlled.

If you are referring to the actual reels inside a slot machine then these aren’t random at all.

A really naive example.

rand() produces a pseudo random value between 0 and 2147483647.

Each of your reels has 6 images.

so to get a number between 0 and 5 you can

rand() % 6;

Do this three times for each reel.

It obviously gets more complicated than this as the machines by law have to pay out a certain percentage of what gets paid into them (in the US this is no less than 75%).

You are viewing 1 out of 12 answers, click here to view all answers.