Find the first randomly selected directory from the list of directories stored in the variable DIRS and search for files with the name ending in ".txt".
find $(echo $DIRS | tr ',' '\n' | shuf | head -n1) -iname "*.txt" ;