const randomHexColorCode = () => {
let n: string = (Math.random() * 0xfffff * 1000000).toString(16);
return '#' + n.slice(0, 6);
};
Random HEX color
Generates a random hexadecimal color code.
0 Comments
Add Comment
Log in to add a comment
const randomHexColorCode = () => {
let n: string = (Math.random() * 0xfffff * 1000000).toString(16);
return '#' + n.slice(0, 6);
};
Random HEX color
Generates a random hexadecimal color code.
Log in to add a comment