Do you feel lucky? Then copy it to the lua editor and let's see!
math.randomseed(os.time())
local chance = math.random(0, 100)
if chance == 1 then
print("Very rare text! 1%")
elseif chance <= 5 then
print("pretty rare text! 5%")
elseif chance <= 15 then
print("Medium rare text! 15%")
elseif chance <= 20 then
print("Not that rare text! 20%")
elseif chance <= 65 then
print("Common text 65%")
elseif chance <= 80 then
print("very common text! 80%")
elseif chance <= 95 then
print("Very very common text 95%")
elseif chance >= 0.1 then
print("Unique text! 0.1%")
elseif chance <= 0.01 then
print("Mythic text 0.01%!")
elseif chance <= 0.001 then
print("Secret text! 0.001%")
elseif chance <= 0.00001 then
print("Congratulations you finished the game! 0.00001%")
end