Hello I'm in the process of trying to create a hangman game. I've got everything working great, but I'm having a problem getting a word from a text document at random. I'm able to get a word. Just not at random. Here what I've got so far.
You need to write srand(time(0)); just once when your program starts. This will ensure that the random number generator doesn't always start at the same place in the sequence.