private static char[] shuffle(char[] array){
	
		Random rgen = new Random();  // Random number generator
		char[] jumble = array;  

		//--- Shuffle by exchanging each element randomly
		for (int i=0; i<jumble.length; i++) {
		
			int randomPosition = rgen.nextInt(jumble.length);
			char temp = jumble[i];
			jumble[i] = jumble[randomPosition];
			jumble[randomPosition] = temp;
		}	
		
		return jumble;
	}