/** 
 * Number processing utilities 
 * @author Rebecca Younes
 */

ILR.namespace("util");

ILR.util.number = {
	
	/**
	 * @description Generate a random integer between two values (inclusive). 
	 * From "The JavaScript Anthology", James Edwards & Cameron Adams
	 * @method randomIntBetween
	 * @param {Integer} min Lower bound (inclusive)
	 * @param {Integer} max Upper bound (inclusive)
	 * @return {Integer} The random int
	 */
	randomIntBetween : function(min, max) {
		return min + Math.floor(Math.random() * (max - min + 1));
	}
	
};
