Find all PDF files in the Desktop directory, sort them randomly, select the first one, and move it to the Documents directory.
find ~/Desktop/ -mindepth 1 -name '*.pdf' -exec basename {} \; | sort -R | head -n1 | xargs -I % mv % ~/Documents/