A casino is a place where people gamble by playing games of chance or, in some cases, skill. Some of these games include blackjack, roulette, craps, and video poker. Many casinos also offer free lessons to help people learn how to play the games before they gamble for real money. Some casinos make money by charging a fee to players who win, while others earn their profits by taking a percentage of the winnings or by giving away complimentary items.

Beneath the varnish of flashing lights and free cocktails, casinos stand on a bedrock of mathematics engineered to slowly bleed patrons of their cash. For years mathematically inclined minds have tried to turn the tables by harnessing their knowledge of probability and game theory to exploit weaknesses in a rigged system.

But math rarely lies, and the house always has a statistical advantage against the player. This edge varies by game, but it helps ensure that over time the casino will not lose money to gamblers. Casinos earn a substantial portion of their revenue from this accrued advantage, although they also generate profit from food, entertainment, and other venues. In the United States, slot machines and (since the 1980s) video poker are the economic breadwinners for the industry. They are a mainstay of American casinos, which rely on high volume, rapid play at sums that range from five cents to a dollar or more to produce the necessary income.