Mine
public text v1 · immutablefunction shuffleTable(inputData)
local newTable = {}
local i_RndTblPos = 0
while #inputData > 0 do
i_RndTblPos = math.random(1,#inputData)
table.insert ( newTable, inputData[i_RndTblPos] )
table.remove ( inputData, i_RndTblPos )
end
return newTable
end