You can keep the variable as the % chance so 25, then you generate another number to compare against. So if you set another variable to random(1,100) it will give you a random num from 1 to 100 and the logic would be if the generated number is less than or equal to % chance then it would block. So for example 11 generated would block and 79 would not.