Understanding the odds: How casinos ensure profitability