im just trying to generate a number 1-4, declare a 'creature' for that number, and then display its stats
my error is on line 59 attempting to generate a number from 1 to 4 and put it into the variable 'enemy'
lines 60-63 are just going to display the stats based on the number generated
srand(time(0)); is in main()
If generate_random(int) returns an int, then you should have assigneg it to an int variable like: int random_value = generate_random();
Annother question is, for what is in fuction generate_random(int) an int paramentr?
Let's see: int i is an parameter. Then to this i you assign a random value and return this i.
Make this fuction parameterless, I think it would be better.
This could resolve your problem with random numbers.