Create a compressed archive with a temporary name in the current directory, containing a randomly selected file from the current directory.
tar cfz $(mktemp) -C $(pwd) $(find $(pwd) -type f -name '*\.*' | shuf | head -1)