hi
thanks for checking this out:
this is just a simple random function for a computer to make a move in tic tac toe. Everytime i run the program i get the same randomly generated number [2][2]. I'm new to this so if it is blatantly obvious please make me feel retarded and then show me the light ;)Code:void computerMove(char board[SIZE][SIZE])
{
int x,y;
x = rand()%3;
y = rand()%3;
board[x][y] = 'x';
}