Generate random color hex
By Bartłomiej Bartel
24 Jul 2015 09:52
Simple example of generating a random color hex.
var randomColor = "#"+Math.random().toString(16).slice(-6);
console.log("Your random color is - " + randomColor);
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.
Enter a description.