Talk:GenerateRandomHEXColor

From Multi Theft Auto: Wiki
function generateRandomHEXColor( )
    return '#' .. string.format( '%.6X', math.random( 0x000000, 0xFFFFFF ) )
end 

LOL --TheNormalnij (talk) 20:37, 8 August 2014 (UTC)

Top-notch efficiency

Well that indeed is the best way to get a random hex string. I really hope a Wiki admin won't delete the "useful" function, because this calls for a module and is significantly more inefficient rather than the example above. And yes, I was being sarcastic; honestly speaking this function is bs and should be avoided at all costs. Socialz (talk) 22:19, 8 August 2014 (UTC)