Randomize location of multiple objects
You can use the Randomize Transform operator with all objects selected in Object mode.
Press the Spacebar (or F3 with default 2.8 keymap)and then begin typing Randomize until the option appears, and adjust the desired axis for location/ rotation/ scale  in the operator panel, or by pressing F6.
You can also access the operator from the menus via Object&gt;Transform&gt;Randomize transform to do the same thing.