Random number generation

Generate random number within a range

function random(min, max){  
	return Math.floor(Math.random() * (max - min + 1)) + min;	
}