Reminds me of the Gachapon from maplestory.
"Gachapon, also known as がちゃぽん in japanese, is a lottery-like minigame that awards MapleStory players with random items in exchange for Gachapon Tickets, which are bought at the price of 1,000 NX Cash (in GMS). There are Gachapon machines stationed throughout various towns. The name Gachapon references actual Japanese gachapon machines, which dispense collectible toys and items inside of little capsules - the name gachapon alludes to the noise the machine makes when dispensing the capsule."