How to make a shader that renders each object in the scene in a different flat color?

Thanks for the suggestion! That should work well, except in the case that things are moving in the scene, in which case their colors will change over time.