DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript random rgb
var r = () => Math.random() * 256 >> 0; var color = `rgb(${r()}, ${r()}, ${r()})`;
Source by www.paulirish.com #
PREVIOUS
NEXT
Tagged:
#javascript
#random
#rgb
ADD COMMENT
Topic
COMMENT
Name
9+4 =
Submit