perl random color hex

perl random color hex
Don’t know if this counts as too obfuscated. It’s easy to read for me…
printf "#%x%x%x%x%x%x", map { rand(16) } 1 .. 6;
[close] Permanent link · http://querylog.com/q/perl+random+color+hex

Suggested HTML for linking:
Link preview: perl random color hex
16 June 2009 · Internet & computing
The page found by the original query:
QueryLog: perl random hex
Browse by the page—15 Q&R each
« previous | more »