Moduł:Shuffle: Różnice pomiędzy wersjami
Z Nonsensopedii, polskiej encyklopedii humoru
Ostrzyciel (dyskusja • edycje) M |
Ostrzyciel (dyskusja • edycje) M (paaanie idź pan w ch) |
||
Linia 1: | Linia 1: | ||
local p = {} |
local p = {} |
||
local function shuffleArr(t) |
|||
⚫ | |||
while n > 1 do |
|||
⚫ | |||
t[n], t[k] = t[k], t[n] |
|||
⚫ | |||
end |
|||
return t |
|||
end |
|||
function p.shuffle(frame) |
function p.shuffle(frame) |
||
local t = |
local t = frame:getParent().args |
||
local s = "" |
local s = "" |
||
⚫ | |||
while n > 1 do |
|||
⚫ | |||
s = s .. table.remove(t, k) .. "\n" |
|||
⚫ | |||
end |
end |
||