Here is a medium casino part, or the mecanism of random.
Simple to understand : you pay one item and may gamble 4 others items with differents ratio each time.
The chance you have to win is your choice : 1/2 to 1/9 chances to win (default here : 1/2 1/4 1/6 1/9) ! To chose it, you have to add some "carpets" (each of differents colors) in dispensers to downgrade the loot ratio.
To chose the item required, replace the first item of the first hopper (near the comparator) with one of your choice.
See you soon for more Casino Machine !
Good Luck & Have Redstone !