DEV Community

loading...

Discussion on: What the Hex!? (how to generate random hex color codes in javascript)

Collapse
lukaszahradnik profile image
Lukáš Zahradník

That's in case of Math.floor, not Math.round as is in the article. Math.round just causes issue with probability distribution of characters.