Talk:Random numbers: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>N2KC No edit summary |
>JustinP231 No edit summary |
||
Line 14: | Line 14: | ||
Oh, of course. I forgot about randomseed... --[[User:N2KC|N2KC]] 01:33, 30 March 2008 (CDT) | Oh, of course. I forgot about randomseed... --[[User:N2KC|N2KC]] 01:33, 30 March 2008 (CDT) | ||
:::But... couldn't you just program the OS. Time functions? O.o |
Revision as of 22:32, 31 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)
- But... couldn't you just program the OS. Time functions? O.o