davidmerfield / davidmerfield/randomColor

"Truly Random" isn't actually random?

Open
#144 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
6.1k
Forks
408
PR merge metrics
No merged PRs in 30d

Description

randomColor({hue: 'random',luminosity: 'random',count: 54});

More of a pet peeve than an severe issue: On the demo page, you have the above code for _Truly Random_ colors, but it produces dark colors more often than not, so it appears biased and/or constrained to certain saturations and luminosities (which means its not truly random).

Comparison of `randomColor` on the left, to fully random RGB values (on the right).

![image](https://user-images.githubusercontent.com/1408749/109708001-d4af3700-7b68-11eb-8639-36619a214126.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.