function create_random_area(sizex, sizey, typecenter)
local area = {}
for y = 1, sizey do
tab = {}
for x = 1, sizex do
table.insert(tab, ((sizey - 1) / 2) + 1 == y and ((sizex - 1) / 2) + 1 == x and typecenter or math.random(0, 1) )
end
table.insert(area, tab)
end
return area
en...