Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Truly random numbers with ranges (Lua)
--[[ Truly random numbers Lua made by Ice Scripter This program may be updated overtime Put "random()" to use the truly random number Don't worry about code between these lines. ]] -- Added ranges by DmilkaSTD -- edited and improved by 'JAMES COLLINS' local u = 0 function random(init, range_end) -- start pseudo-random number generation u = u + 1 local regular = math.floor(math.random(math.randomseed(os.time()+u))*(range_end - init)) regular = (regular + init) return regular end -- end of pseudo-random number generation -- example -- for i = 1, 10 do print(random(100, 1000)) end
run
|
edit
|
history
|
help
2
kraft1c
multiline string
Conta valores acima da média - LUA
Personal Use (Among Us)
123
Creating habits. Lua
Kegs Scores ... FOOOOOOTBALLLLLL
finding volume of pyramids (for me, but feel free to use)
anti.lua
wwww