lib/libs/number.js
function randomBetween(_min, _max) {
	var max, min;
	
	if(_min > _max){
		min = _max;	
		max = _min;
	}
	else if(_min === _max){
		return _min;
	}
	else{
		max = _max;
		min = _min;
	}
    
    var r = Math.floor(Math.random() * max) + min;
    
    if(r > max)
    	return max;
    if(r < min)
    	return min;
    else
    	return r;
}
function randomBetween(_min, _max) {
	var max, min;
	
	if(_min > _max){
		min = _max;	
		max = _min;
	}
	else if(_min === _max){
		return _min;
	}
	else{
		max = _max;
		min = _min;
	}
    
    var r = Math.floor(Math.random() * max) + min;
    
    if(r > max)
    	return max;
    if(r < min)
    	return min;
    else
    	return r;
}
function randomBetween ( _min , _max ) { var max , min ; if ( _min > _max ) { min = _max ; max = _min ; } else if ( _min === _max ) { return _min ; } else { max = _max ; min = _min ; } var r = Math . floor ( Math . random ( ) * max ) + min ; if ( r > max ) return max ; if ( r < min ) return min ; else return r ; }
Generates a random number between two numbers

@param {int} _min
@param {int} _max
@api public
Generates a random number between two numbers