Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

math.random prints same number all the time?

Asked by 7 years ago
function getMythical()
local xc1 = math.random(1,100)
return xc1
end


print(getMythical())

so i'm trying to do a simple script which would print out a random number between 1 and 100. this prints out the same number every time.

i tried math.randomseed(tick()) but it takes a long time for that number to change and it only goes up by one or two.

help would be appreciated

0
This is a studio problem. It won't do this in an actual server. OldPalHappy 1477 — 7y
0
so math.random() will work in online mode? V_ChampionSSR 247 — 7y

Answer this question