Find all files in the current directory (echo $PWD/* :) that are of type file (-type f) and have the extension ".ext" (-name "*.ext")... Sort them randomly (-R) and select the first one (head -n 1).
find $(echo $PWD/* :) -type f -name "*.ext"... | sort -R | head -n 1