How to rotate hundreds of objects without key framing each of them?

At the most fundamental level, it could look close to this:

Image from Gyazo

But you’ll need to work in a pattern, if needed.