Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would i create a random number generator from 0 - 10?

I want a script that changes the value of an IntValue every 3 - 5 seconds (with a number between 0 - 10) but i'm having trouble finding anything on how i would do it, Any help would be much appreciated!

1 comment

0

literally just made a block with SurfaceGUI that displays a random number between 1-100 before i saw this

1 answer

✓ Accepted answer
while wait(math.random(3,5)) do
local value = math.random(0,10)
print(value)
end
--I havnt tested this out in studio yet, but this should work.

2 comments

0

Thank you :) Works great i will look into math.random and teach myself it i appreciate the help have a wonderful day!

0

No problem. Keep shining m8

This discussion is preserved as it was. New answers, comments, and votes are closed.