Texture Map To XYZ script?

I know the subject says script, but I am hoping I won’t need one, so I put this topic here.

I have a need to model several hundred individual blocks which will have a material and texture to look like stone. I have made the models and can recreate them at will, but when I apply texturing, every single stone looks exactly the same.

I found out if I change just the X, Y, and Z boxes in the Map Input tab then I can get believable variousness in the blocks. I can make a few other similar textures too, but what I wanted to know is there a script or method to vary a single texture over many duplicate and separate objects or do I have to make a different texture for all 700 something blocks I have made?