Here is a medium-large casino part, for 1.6.4.
For this one, we don't talk about random, but skill and reflex!
Simple to understand : you have to pay one item and may gamble 3 others items : one per good push, with 5 push max per game! So, concentrate yourself to push the button at the right time : when the middle light is OFF !
Unfortunly, this machine depends of your ping : a lag can help you to win, or destroy your chances!
The chance you have to win is small : this game is a little bit difficult. Try again to win !
To chose the item required, replace the first item of the first hopper (near the comparator, under the chest) with one of your choice (must be a stackable item x64).
May the Force be with you !
See you soon for more Casino Machine !
Good Luck & Have Redstone !