function randomNumber(max, min){
	//get the difference between max and min
	var difference = max-min;
	//this code generates a random number between max and min
	var randomNumber = (difference*Math.random()) + min;
	//then this call rounds the number
	var result = roundNumber(randomNumber, 2);
	return result;
}

//this function rounds to the decimal points given in dec
//it is taken from http://forums.devarticles.com/javascript-development-22/javascript-to-round-to-2-decimal-places-36190.html
function roundNumber(num, dec) {
	var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
	return result;
}
