Jhead45
4/25/2018 - 2:47 AM

Random Color (rgb) function

determine random color with rgb

function getRandomColor() {
    let randColor = 'rgb(' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ')';
    return randColor;
}