Take the output of the 'env' command, remove all non-alphanumeric characters and replace them with newlines, sort the output randomly, take the first line, and use it as an argument to move the file to the home directory.
env | tr -sc "[:alnum:] " "\n" | sort -R | head -n 1 | xargs -I {} mv {} ~/