Hy!
I made a simple material color randomizer for choosen material id.
Random color, darken or invert the color (based on cookbook)
Works with Blender Render and Cycles as well.
https://drive.google.com/file/d/0B5QQIWH-54S1eUF5dHRYaVM1YkU/view?usp=sharing
Attention: Material Slots (id) are limited to 100 .)