Talk:Random numbers

From Legacy Roblox Wiki
Revision as of 06:33, 30 March 2008 by >N2KC
Jump to navigationJump to search

I haven't tried this, but what about:

x = math.random(1, 100)
y = math.random(1, 100)
rand = math.random(x, y)

--N2KC 21:40, 14 March 2008 (CDT)

You want to use math.randomseed(game:GetService("RunService").Stepped:wait()) --Telamon 12:58, 24 March 2008 (CDT)

If we had the OS.Time function we could generate random numbers based on the current time/date as a seed. ---Mr Doom Bringer 16:39, 24 March 2008 (CDT)

Oh, of course. I forgot about randomseed... --N2KC 01:33, 30 March 2008 (CDT)