I am making an AI for my ttt game... and im making a test to see if rand() really works... but i run this code...
Code:
#include <iostream>
#include <stdlib.h>
#include <conio.h>

int main(int argc, char *argv[])
{
  int test;
  
  test = rand()%5;
  cout << test << "\n";
  
  system("PAUSE");	
  return 0;
}
and i always get 1!!!!! why doesnt it work!