echo -n $(find ~/ -type f -printf ' %s\n' | sort -R | head -1);

Print the name of a randomly selected file in the user's home directory.
echo -n $(find ~/ -type f -printf ' %s\n' | sort -R | head -1);