Im working on a hangman game for class, i'm having trouble getting a random number. Everytime I run the code I get the same number. Not sure what the problem is here, anything would help.
string pickWord(){
int random = rand() % 17;
string word = ::wordList[random];
cout << word << endl;
return word;
}