Module:Sandbox/stwalkerster/cols

-- User:Stwalkerster's testing page.

local o = {}

function o.randomColour math.randomseed( os.time ) -- mw.log("start") local r = string.format("%X",math.random(16,255)) local g = string.format("%X",math.random(16,255)) local b = string.format("%X",math.random(16,255)) return r .. g .. b; end

function o.bgcol return "background-color:#" .. o.randomColour .. ";" end

return o