Writing a basic rock paper scissors. problem occurs when C++ skips the switch case randomly. Sometimes it will run 5-9 times before skipping, sometimes it will skip on the very first fresh try. Have cut everything out but the switch cases and it still occasions to take the input, but not run any of the output and then terminates. Have no idea why its doing this. For example, it will prompt user to enter number, upon entering the number, it may or may not actually run the code for that input. This occurs seemingly randomly, as it is not attached to which input you enter or how many times it has run prior. Sometimes the first run wont work, but the second does. Sometimes the first 4 wont run, but then it will.
So changing line 13 to " int cChoice = (rand()%3);" should net me values 0-2, like the switch statement expects?
Srand should only be once? But I want ensure I have the computer taking diff selections for each game, so it doesnt follow one "randomization" for every game, but a fresh one at every choice