I have decided to take a break from Card Sharks (though somebody may be doing an improvement on the game as of lately), and I am now working on Super Password.

I would like to find out some information:

If I were to randomly select a text file from a range of text file numbers within a folder, how would I randomly choose the text file number? Like say, if I were to choose between textfile0 to textfile20, or something.

Also, if the program were to choose randomly from a series of lines (the lines start with red words - lines 3 to 9, in this case), and the CPU player must give one of the words and if the contestant or CPU player gives one of the words elsewhere on the line and it matches the first word on the second line (as shown in purple text), how do I code it?

If I am unclear in what I am saying, please let me know. Here is a segment of the text file:

mister,mister,mr,mr.,
coffee,coffee,
none,none,none,none,
folgers,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,
sanka,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,
caffeine,coke,coffee,coke,insomnia,coffee,coffee,coffee,coffee,coffee,coffee,
cappuccino,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,
beans,kidneys,kidneys,jelly,vegetable,coffee,coffee,coffee,coffee,coffee,coffee,
espresso,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,
java,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,coffee,