package classes.matuto.utils.model 
{
	import flash.geom.Point;
	import flash.ui.Mouse;
	
	/**
	 * ...
	 * @author ...
	 */
	
	public class MathG 
	{
		
		
		public static function  intervalo(max:Number,min:Number):Number
		{
			return min + (max - min) * Math.random();
		}
		
		
		private static function  randomIntArray(array:Array):Array
		{

			var randomImages:Array = [];
			var randomCount:Number = array.length;
			var r:Number;
			
			for (var i:int = 0; i<randomCount; i++) 
			{
				
				r = Math.floor(Math.random()*array.length);
				randomImages[randomImages.length] = array.splice(r, 1);
					
			}
			
			
			return randomImages;
			
		}
		
		public static function  randomInt(value:int):Array
		{
			
			var array:Array  =  [];
			
			for (var i:int = 0; i<value; i++) 
			{
				array.push(i);	
			}
			
			
			return randomIntArray(array);
			
		}
		
		

		
	}

}