I can't figure out why I am getting this error. I have tried #include several things and I have tried changing the location of srand.
#include <iostream.h>
#include <ctime>
class Horse {
int position;
public:
Horse(); //Horse constructor??? Per UML
int random;
srand( time(0));
void advance(){
random = rand() % 2;
cout << random;
}//end advance function
int getPosition(int y){
return y;
}//end getPosition function
};//end Horse class