Talk:Random numbers: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer mNo edit summary |
>N2KC No edit summary |
||
Line 12: | Line 12: | ||
:If we had the OS.Time function we could generate random numbers based on the current time/date as a seed. ---[[User:Mr Doom Bringer|Mr Doom Bringer]] 16:39, 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. ---[[User:Mr Doom Bringer|Mr Doom Bringer]] 16:39, 24 March 2008 (CDT) | ||
Oh, of course. I forgot about randomseed... --[[User:N2KC|N2KC]] 01:33, 30 March 2008 (CDT) |
Revision as of 06:33, 30 March 2008
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)