Hello,
I am trying to make a random number generator to simulate a critical hit if the number generated is from 0-critical amount. However, every time i run the code, despite being within the parameters set by the if statements, it always runs through as a critical hit and never a regular hit.
What's for condition R>=0 in each if (R>=0||R<=critical) ? As you defined R it will result a number between 0 and 99 so this condition is superfluous. Delete it please.