Have every object in your level be a unique color?

Hi all. I know virtually no C++ or blueprint. So I am asking for your help.

I use Unreal for concept art and I wish to be able to have every object in my scene a different, unique color for easy selections within Photoshop.

It is very tedious to do this by hand because I would have to create at LEAST hundreds of materials by hand and hand-assign them to each object.

So I am wondering whether it is possible to do this automatically. Thank you in advance.

in the material graph you should be able to do something like objectPosition -> divide by 1000 -> absolute -> fmod by 1000 -> plug result into base color
it would be better to use 3 texture nodes with a noise using world space to drive texture coordinates but i do not have my computer with me to illustrate it.