public static int generateRandomIntegerBetween(int min, int max)
	{
		if(max == min)
			return min;
		
		if(max - min < 0)
		{
			int temp = min;
			max = min;
			max = temp;
		}
		
		double v; //value
	
		//calculate random number between max and min
		v = min + (Math.random() * (max - min));
	
		return (int)v;
	}