Get a random color.

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

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.