Convenience stores here in Japan do that a lot - they'll have a campaign period where for every $10 you spend or so you get to pull a raffle ticket and might win a chocolate bar or can of beer on the spot. Not related to self-checkouts though (those haven't reached convenience stores yet, at least not outside of one or two enterprising franchisees)
Certain brands of vending machines will also do a slot machine routine - the price LED display will spin numbers and if you get 4 in a row you win a second drink (I've never won)