No it just means a little more coding
SetVirtualResolution(800,480)
SetWindowSize(800,480,0)
do
print("press space bar")
if GetButtonPressed(1) = 1
a = random(1,100)
endif
//1-10, 30-40 and 90-100 is 2 that is miss?
//but what do you want to do if the outcome is between 10 and 30 or between 40 and 90
if a <= 10
print(str(a) + " = hit")
elseif a => 30 and a <=40
print(str(a) + " = hit")
elseif a > 90
print(str(a) + " = miss")
endif
sync()
loop
However, and this is what Phaelax was talking about, there is no resolution for number between 10 and 30 or between 40 and 90 so what would you want to do? You need to make sure that there is a proper resolution for all values of a.
If I was doing this for a role playing game, for example, I might do something like this:
SetVirtualResolution(800,480)
SetWindowSize(800,480,0)
// variable that hold the percentage of the outcomes
critical_hit = 20
normal_hit = 60
normal_miss = 80
do
print("press space bar")
if GetButtonPressed(1) = 1
a = random(1,100)
endif
if a <= critical_hit
print(str(a) + " = critical hit")
elseif a <= normal_hit
print(str(a) + " = normal hit")
elseif a <= normal_miss
print(str(a) + " = normal miss")
else
print(str(a) + " = critical miss")
endif
sync()
loop