Vray equivalent to MentalRay Multi/Sub-Mat shader

I moved over from MentalRay to Vray recently and miss the ability to assign random materials to multiple objects with MentalRays Multi/Sub-Mats shader. I've searched thro' the topics but can't seem to locate a script that does the same trick in Vray. Can someone please direct me to a script or workaround?

Thanks