How do you randomly select words from a text file for ex:
text.dat contains boy, gir,l town, car
The program should create a sentence by selecting a word at random from different .dat files.
The program should generate 10 such sentences using these words from different files and each sentence should generate a random number.