Find all directories in the current directory, print their names, randomly sort them, take the first one, and compress it into a tarball.
find . -maxdepth 1 -type d -printf '%f\n' | sort -R | head -n 1 | xargs tar cvfz