rolling-10

master
Lars Mueller 2020-03-24 23:32:56 +01:00
parent 892a27deef
commit 77c7dd5175
1 changed files with 9 additions and 0 deletions

View File

@ -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