How to use a path to control the motion of multiple objects

My final bit of fun with this, some randomness and a couple of tweens added:

The whole thing (without additional randomization) is mere 20 lines of code including the mesh creation. So it definitely beats any manual work, especially if you want to go with 1000 of objects.