The VRayMultiSubTex texture distributes multiple textures to many objects via one single material based on specified IDs or a random distribution.
In the image shown here, VRayMultiSubTex's Get ID from parameter has its type set to Object ID. Each part of the ball is assigned a texture. The VRayMultiSubTex is then assigned to the diffuse channel of a single VRayMtl.