Monday Microsofty 78: Card Sharks That Bite Harder
If you go to a gambling establishment and play the one-armed bandit, the outcome for each of your turns is determined by computer software. To write good code for that, you need to know how to generate random numbers. I once consulted for a gaming establishment involved in a lawsuit. I examined the software for a number of machines and became an expert in generating them. But interestingly, computer code can’t generate truly random numbers. The best it can do is generate pseudo-random numbers. To make sure that the pseudo-random number generator works, those who write software for gambling or sweepstakes must have their code analyzed by a third party to make sure that the pseudo-random number generator is working accurately. Here’s the transcript. To win at gambling, you need probability on your side. In pure chance games like roulette, craps, and one-armed bandits, the house edge guarantees you’ll lose over time. In probability theory, this is guaranteed by the Law of Large Numbers. That’s right. It’s the law: You lose. On the other hand, …



