Lua [edit]. function table.shuffle(t) for n = #t, 1, -1 do local k = math.random(n) ... table.shuffle(a) for i,v in ipairs(a) do print(i,v) end.
確定! 回上一頁