A casino is a facility where people can gamble and try their luck at various games of chance. Most casinos are equipped with a wide range of gambling tables and machines such as slot machines, roulette wheels, and dice. Some casinos also include other entertainment options such as theaters, bars, and restaurants. Casinos are generally open around the clock and have security measures in place to prevent cheating and theft. In many countries, casinos are required to maintain a certain percentage of their earnings in reserve to pay winners.

Modern casino security systems are largely automated and use cameras to monitor activity. Computers can also oversee the games themselves, for example in “chip tracking,” where betting chips with microcircuitry interact with electronic systems that record the exact amounts wagered minute by minute and alert casinos to any statistical anomalies. Roulette wheels are electronically monitored to detect any discrepancies between their expected results and actual payouts.

Some casino games involve skill, such as blackjack and poker. However, the house always has a mathematical advantage over players, regardless of their skills. This advantage is known as the house edge and is determined by the rules of the game, the number of decks used, and other factors. The house edge can be minimized by using basic strategy and by counting cards. In games such as poker where patrons play against each other, the casino makes its profit through a commission called the rake.