local luck = 0
while true do
local num = math.random(1,1000000000)
local chosen = "None"
luck = luck + 1
if num <= 1000000000*luck then
chosen = "Normal"
if num <= 100000000*luck then
chosen = "Bronze"
if num <= 10000000*luck then
chosen = "Silver"
if num <= 1000000*luck then
chosen = "Gold"
if num <= 100000*luck then
chosen = "Sapphire"
if num <= 10000*luck then
chosen = "Emerald"
if num <= 1000*luck then
chosen = "Ruby"
if num <= 100*luck then
chosen = "Amethyst"
if num <= 10*luck then
chosen = "Diamond"
if num <= 1*luck then
chosen = "Opal"
end
end
end
end
end
end
end
end
end
end
print("You Got: "..chosen)
end
To embed this project on your website, copy the following code and paste it into your website's HTML: