Here's how to get more bounce from a normal tennis ball - buddy it up with a heavier ball for twice the impact. Hold a ball in each hand and decide which ball weighs more (has greater mass).
Shaking the can agitates the pea, causing it to bounce around the inside ... The rattling noise is a result of the metal ball inside the can, which is necessary for effective mixing.