The slot machine is one of many possibilities of re-creating a real life machine in Minecraft.
It works with the new game features of Redstone signal strength and Hoppers to calculated the total amount of matching slots, with corresponds to different prices.
Please let me know of other machines that can be achieved with the new 1.5 update, as well as suggestions of machines that can be attempted to be remade in the game.