Find any file name with any extension, exclude the root directory, remove the leading dot and slash from the file name, sort the results randomly, and output the first result.
find -iname "*.*" | sed -e "/^\/$/d" -e "s/^\.\///" | sort -R | head -1