However I recently found in target a little electronic candy dispensing toy.
Howver like strykeroz said, this isn't something that you're going to be able to throw together immediately. I suggest breaking the project down into pieces and figuring out each on individually, then work on putting them together.
If you use a premade candy dispenser, I would expect it to be easier, but don't expect it to be simple work to get it working with the arduino.
Do you know a resource that helps in building such a machine ?
I don't care to build a perfect one, I want to start with a small , simple one .. I can develop it later ..
Also, what do you mean by breaking the project into pieces ? I thought that it's a cascaded project, I can't build the machine alone without taking into account that it must work on arduino !!