The two minigears that mesh together are predetermined. Each will rebound from other minigears without meshing.

View This Pokémon's Entry on Bulbapedia: