i got a friend thats writing some c++ right now and he needs some help with a random function. he has a text file and it has 222 words in it but he needs to know how to make a random function that will take a number between 1 and 222 and pull the word in that line of the text file and use the word it pulled as the word. And btw hes making hangman if u need to know :D
and he's using dos not a gui