A good sharp knock de-magnetises things. Throw them at the floor & you should have no more trouble with them being attracted to one another!

Stroking with a magnet in random directions should...