# Randomize location of multiple objects

Does anyone know if there's a modifier or any other way to "randomize" the location of a number of objects? What I have is about 20 objects positioned next to each other and I want to randomize their Z value, but it's for a still, not for animation. I'd like to know if I can do this other than manually because I may have a lot more objects than just 20...

Thanks!!

EDIT: I've found a way. With all objects selected, I just need to run this script:

import bpy
from random import *

for ob in bpy.context.selected_objects:
ob.location.z = ob.location.z + random() * 2


I wonder, however, is there's a more "visual" solution to this, other than scripting...