src/file_handling/CellDataGenerator.java
private void placeCellRandomly(String cellName, List<String> list, Boolean[][] filled){
		Random randy = new Random();
		
		boolean placed = false;	 //Ensures that a Cell is placed
		while(!placed){
			int x = randy.nextInt(dimension);
			int y = randy.nextInt(dimension);
			if(!filled[x][y]){  //Prevents two Cells from being placed in the same location
				list.add(x + " " + y + " " + cellName);
				filled[x][y] = true;
				placed = true;
			}
		}
	}
/**
	 * Generates random x and y values at which to place a Cell and creates
	 * a new String representing that data, placing it in the given List.
	 * 
	 * @param cellName - name of Cell to be placed
	 * @param list
	 * @param filled - 2d-array representing grid of cells, true if a cell is there, false if not
	 */
Generates random x and y values at which to place a Cell and creates
a new String representing that data, placing it in the given List.

@param cellName - name of Cell to be placed
@param list
@param filled - 2d-array representing grid of cells, true if a cell is there, false if not
Generates random x and y values at which to place a Cell and creates a new String representing that data placing it in the given List . @param cellName - name of Cell to be placed @param list @param filled - 2d - array representing grid of cells true if a cell is there false if not
private void placeCellRandomly(String cellName, List<String> list, Boolean[][] filled){
		Random randy = new Random();
		boolean placed = false;	 
		while(!placed){
			int x = randy.nextInt(dimension);
			int y = randy.nextInt(dimension);
			if(!filled[x][y]){  
				list.add(x + " " + y + " " + cellName);
				filled[x][y] = true;
				placed = true;
			}
		}
	}
private void placeCellRandomly ( String cellName , List < String > list , Boolean [ ] [ ] filled ) { Random randy = new Random ( ) ; boolean placed = false ; while ( ! placed ) { int x = randy . nextInt ( dimension ) ; int y = randy . nextInt ( dimension ) ; if ( ! filled [ x ] [ y ] ) { list . add ( x + " " + y + " " + cellName ) ; filled [ x ] [ y ] = true ; placed = true ; } } }
Generates random x and y values at which to place a Cell and creates
 a new String representing that data, placing it in the given List.
Generates random x and y values at which to place a Cell and creates a new String representing that data placing it in the given List .
//Ensures that a Cell is placed //Prevents two Cells from being placed in the same location