src/ie/gmit/sw/ai/Shuffler.java
private void swapRandomRows() {
		int row1 = (int) Math.floor((Math.random() * 5));
		int row2 = (int) Math.floor((Math.random() * 5));
		
		if (row1 == row2){
			swapRandomRows();
		}//if
		else {
			char[] temp = matrix[row1];
			matrix[row1] = matrix[row2];
			matrix[row2] = temp;
		}//else
	}
//randomly picks 2 rows and switches them around in the matrix
randomly picks 2 rows and switches them around in the matrix
randomly picks 2 rows and switches them around in the matrix
private void swapRandomRows() {
		int row1 = (int) Math.floor((Math.random() * 5));
		int row2 = (int) Math.floor((Math.random() * 5));
		if (row1 == row2){
			swapRandomRows();
		}
		else {
			char[] temp = matrix[row1];
			matrix[row1] = matrix[row2];
			matrix[row2] = temp;
		}
	}
private void swapRandomRows ( ) { int row1 = ( int ) Math . floor ( ( Math . random ( ) * 5 ) ) ; int row2 = ( int ) Math . floor ( ( Math . random ( ) * 5 ) ) ; if ( row1 == row2 ) { swapRandomRows ( ) ; } else { char [ ] temp = matrix [ row1 ] ; matrix [ row1 ] = matrix [ row2 ] ; matrix [ row2 ] = temp ; } }
randomly picks 2 rows and switches them around in the matrix
randomly picks 2 rows and switches them around in the matrix
//if //else