Last active
January 7, 2022 21:04
-
-
Save tannerdolby/d94040ad19c2917fba1a10dd74ec9a5a to your computer and use it in GitHub Desktop.
Generate 3 random numbers between the inclusive range [0-255] representing an RGB value.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var [r, g, b] = new Array(3).fill(0).map((_, i) => Math.floor(Math.random() * 256); | |
console.log(r, g, b); | |
// 11 210 159 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment