Get a random color.

function randomColor() { return '#' + Math.random().toString(16).slice(2, 8); };

2 Responses

Thanks!
@Melvin TheFirst You're welcome!

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.