Here's a set of plans I worked up for a gumball machine similar to one I saw on my travels on the web. It should work for gumballs, jellybeans, jawbreakers or other candy up to 1/2" diameter. The plans are a 7 page PDF file (5.2Mb) and can be downloaded
HERE if you wish.