How to design a magnetic vibrator?
Does it have to be magnetic? The simplest way to make a "shaker" is a motor with an offset weight. It can be as simple as strapping a small motor to the container with a little weight on the shaft that is not centered. The imbalance will create a lot of vibration. This is how the vibrators in phones work.