Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Shuffle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleitnick committed Nov 24, 2018
1 parent b49d4e3 commit e32ff63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ end

local function Shuffle(tbl)
assert(type(tbl) == "table", "First argument must be a table")
for i = #tbl, 1, -1 do
for i = #tbl, 2, -1 do
local j = math.random(i)
tbl[i], tbl[j] = tbl[j], tbl[i]
end
Expand Down

0 comments on commit e32ff63

Please sign in to comment.