Use randomColor() to generate colors
masterImport the library and call randomColor() to generate a color string. By default, it returns a hex code for an attractive color.
In Node.js:
var randomColor = require('randomcolor');
var color = randomColor();In the Browser:
var color = randomColor();var randomColor = require('randomcolor'); // import the script
var color = randomColor(); // a hex code for an attractive color