Find the first file with any extension in the current directory, randomly select one, and print its name.
find . -name "*.*" | awk 'BEGIN {srand()}{print rand()" "$0}' | sort -nk1 | cut -d' ' -f2- | head -n1