Random

function random(range) {
	return Math.floor(Math.random() * range);
}
var colours = ['red', 'orange', 'yellow', 'green', 'blue'];
var color = colours[random(5)];

Leave a Reply

Your email address will not be published. Required fields are marked *