int userHP = 100;
int enemyHP = rand() % ((userHP - 50) - (userHP - 75)) + 1;
okay, for some reason this doesnt seem to work right, im trying to get 50 -25 hp for enemys.
also id rather it be a percentage... like
int enemyHP = rand() % ((userHP / 50%) - (userHP / 75%)) + 1;
but id like to stick with integers and not mess with floats or doubles... can someone help me?