It looks like you're new here. If you want to get involved, click one of these buttons!
Likes: ar2rsawseen, atilim, gorkem, talis
Likes: NuuNah
-- input: table to shuffle local function shuffle(t) math.randomseed(os.time()) assert(t, "table.shuffle() expected a table, got nil") local iterations = #t local j for i = iterations, 2, -1 do j = math.random(i) t[i], t[j] = t[j], t[i] end end
Likes: talis, NuuNah
Comments
Likes: NuuNah
Likes: talis, NuuNah