local function color()
local hex={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}
local r,g,b=math.random(0,255),math.random(0,255),math.random(0,255)
if r==0 then r0='00' else r0=hex[math.floor(r/16)+1]..hex[(r%16)+1] end
if g==0 then g0='00' else g0=hex[math.floor(g/16)+1]..hex[(g%16)+1] end
if b==0 then b0='00' else b0=hex[math.floor(b/16)+1]..hex[(b%16)+1] end
local str='#'..r0..g0..b0
print(r,g,b,str)
return str
end
color()