mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-29 10:43:43 +01:00
rolling-10
This commit is contained in:
parent
892a27deef
commit
77c7dd5175
@ -1,4 +1,13 @@
|
||||
-- Table helpers
|
||||
|
||||
-- Fisher-Yates
|
||||
function shuffle(t)
|
||||
for i = 1, #t-1 do
|
||||
t[i] = t[math.random(i+1, #t)]
|
||||
end
|
||||
return t
|
||||
end
|
||||
|
||||
function equals(t1, t2)
|
||||
local is_equal = t1 == t2
|
||||
if type(t1) ~= "table" or type(t2) ~= "table" then
|
||||
|
Loading…
Reference in New Issue
Block a user