x and o symbol generation

I have program. I need programing one game.

char girl;
char computer;
cout << "Girl choose one of symbol x or o";
so girl choose x.

problem : i need random symbol genetation. so if random symbol are x, than girl start play. if random symbol ar o, than computer start game. who to do this?
Why do you need a random symbol for that?

Why can't you just use random numbers? Generate a random number of either 0 or 1. If 0, girl starts game, if 1, computer starts game.
Topic archived. No new replies allowed.