Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Truly random numbers (Lua)
-- Truly random numbers Lua made by Ice Scripter-- -- This program may be updated overtime -- -- Put "random()" to use the truly random number. -- v# 1.0 -- -- Don't worry about code between these lines -- local u = 0; function random() u = u + 1; return math.floor(math.random(math.randomseed(os.time()+u))*100); end -- End of func -- -- example -- for i = 1, 10 do print(random()); print(8 + random()); end
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
zzz
Lua recursion with function
10 Line challenge
855
مكسر
Find primes until e
Newton-Raphson method for the square root
python like round function in lua
1
Conta valores acima da média - LUA
Please log in to post a comment.