math.randomseed(os.time())
local aura = {
{name = "--!legendtomato!--", weight = 1, txt = "1in1000"},
{name = "-GODtomato-", weight = 10, txt = "1in100"},
{name = "67tomato", weight = 67, txt = "67in1000"},
{name = "diamondtoamto", weight = 100, txt = "7in100"},
{name = "goodtomato", weight = 150, txt = "15in100"},
{name = "goldtomato", weight = 250, txt = "1in4"},
{name = "tomato inside tomato", weight = 300, txt = "3in10"},
{name = "tomato", weight = 500, txt = "1in2"},
{name = "tomato of tomato", weight = 600, txt = "6in10"},
{name = "tomato in tomato", weight = 700, txt = "7in10"},
{name = "rottentomato", weight = 1000, txt = "1in1"},
}
local function roll()
local chance = math.random(1, 1000)
for _, item in ipairs(aura) do
if chance <= item.weight then
return item.name .. " " .. item.txt
end
end
end
print("---tomatoRNG---")
print("roll...")
print(roll())
To embed this project on your website, copy the following code and paste it into your website's HTML: