can i do something like __objects/*__ and it will select a random .txt file inside the objects folder and a random line?

example when i have a specific folder that has many .txt files but i just want to randomly pick one .txt and line, so point to a folder and pick a word randomly even tho it has many .txt files, first pick random .txt then random line
can i do something like __objects/*__ and it will select a random .txt file inside the objects folder and a random line?

example when i have a specific folder that has many .txt files but i just want to randomly pick one .txt and line, so point to a folder and pick a word randomly even tho it has many .txt files, first pick random .txt then random line