code: 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;
  }
docs: Generates a random number between two numbers
  
  @param {int} _min
  @param {int} _max
  @api public