Constant camera shake.

I used to have this weird system in which I used this script on a sphere in the distance being followed by the camera, but it would of course bump into the geometry in the scene. Is there a way to change the xyz coordinates of the camera randomly in a certain range indefinitely?

You could use this in an Update function:

transform.position = Vector3(Random.Range(minX, maxX), Random.Range(minY, maxY), Random.Range(minZ, maxZ));