private void SwapColumns(int seed) { int counter = seed; while (counter >= 0) { int regionCol = Random.Range(0, gridWidth); int col1 = Random.Range(0, grid[0, regionCol].GetLength(0)); int col2 = Random.Range(0, grid[0, regionCol].GetLength(0)); if (col1 != col2) { shuffler.SwapColumnsInArea(regionCol, col1, col2); counter--; } } }