I'm trying to get a board game randomly initialized with either "X" or "O". For some reason it seems that my algorithm is causing all "X" to appear on the board, when I would simply like a randomized amount of each respective letter.
Here are the function definitions (with both functions being called on back to back lines in main)...
I recommend you turn up the warning level on your compiler. When I compile your program using g++ and passing the -Wall flag it tells me that line 13, 16, 29 and 31 has no effect. This is because you use == instead of =.
Another thing I noticed was that you use x instead of y on line 10 and 26.