I think you still don't get the point. assume rand would normalize its output - the difference between the functions is the distribution of the values in space. The fist version is equally distributed in a cube while the second is equally distributed in a sphere.
A unit-vector is vector with length 1, nothing said about origin and orientation or even interpretation.