Im making a 2d Dots and Boxes games and Im trying to make a Random player, so I am trying to use srand() and use rand() everytime after to generate a number to pick a move on the board. My problem is that I keep getting the same random numbers, making it not random. I need help to progress further into my assignment because I need the randomness. If I can get any random number, then I can move on but I am completely stuck trying to generate a authentic random number. Do I need to have a member in my class for rand()? I just need to generate some random number everytime I call this function "PickMove"
Expected Output: Random Number everytime
Actual Output: Same number everytime I call the function