Skip to content

Instantly share code, notes, and snippets.

@sirdarthvader
Created June 13, 2018 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirdarthvader/99312c5464b81dfdab00ea7695fe08c9 to your computer and use it in GitHub Desktop.
Save sirdarthvader/99312c5464b81dfdab00ea7695fe08c9 to your computer and use it in GitHub Desktop.
function generateRandomColor(num) {
//make an array
var arr = [];
// run the randomColor function num times
for (i=0; i < num ; i++) {
arr.push(randomColors());
}
// return an array
return arr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment