Hi, im making a text game where you battle a dinosaur in an arena, but i'm a bit stumped as to how to make the dinosaur randomly choose attactk and use them against the player. here is my code:
I tried the random numbers thing, i followed a tutorial on them and it isnt working. I tried using srand(); also and it wond even print out the random numbers on the screen. I want it to generate 1 number between 0 and 4, then choose an attack based on that number. I cant seem to get it. I'm trying to work on it right now, but please help still.