Moduł:Shuffle: Różnice pomiędzy wersjami
Z Nonsensopedii, polskiej encyklopedii humoru
Ostrzyciel (dyskusja • edycje) M |
Ostrzyciel (dyskusja • edycje) M |
||
Linia 3: | Linia 3: | ||
function p.shuffle(frame) |
function p.shuffle(frame) |
||
math.randomseed(os.time()) |
math.randomseed(os.time()) |
||
local t = {} |
|||
for _,arg in pairs(frame:getParent().args) do |
for _,arg in pairs(frame:getParent().args) do |
||
table.insert(t, arg) |
table.insert(t, arg) |