local a = math.random(1, 100)
print('A = ' .. a)
if a <= 10 then
    print('10%')
elseif a <= 20 then
    print('20%') -- STC
elseif a <= 30 then
    print('30%') -- STC
elseif a <= 40 then
    print('40%') -- STC
elseif a <= 50 then
    print('50%') -- STC
elseif a <= 60 then
    print('60%') -- STC
elseif a <= 70 then
    print('70%') -- STC
elseif a <= 80 then
    print('80%') -- STC
elseif a <= 90 then
    print('90%') -- STC
elseif a <= 100 then
    print('100%') -- STC
else
    print('A nil error has occured')
end

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: