Job 37:12 (ESV)

12 They turn around and around by his guidance, to accomplish all that he commands them on the face of the habitable world.

When clouds and lighting swirl around over the face of the whole earth, it may seem as if their movements are aimless and random. However, it is God who gives them their direction. They are following his commands.