I\'ve written the following program to read line by line from a file and store it in the words array. The output should be two random words from the array. But surprisingly
Did you initialize the random number generator with srand? An explanation, with an example of how to use it is available here.
srand