GetRandomInt() won't generate a 1

As the title suggests, I’ve tried numerous approaches for this and no matter what, when this runs, it never chooses 1 as an option. 20 comes up but not 1
image

What is the value of your PRand value? Could it be higher than 1?

Also this code can be updated with a case structure, like this:

case (ERand):
            20 => Print("CRITICAL HIT \n")
            1 => Print("ENEMY MISSES \n")
            _ => {}