src/file_handling/CellDataGenerator.java
private void placeCellsWithProbability(List<String> list, String[] names){
		Random randy = new Random();
		
		for(int x = 0; x < dimension; x++){
			for(int y = 0; y < dimension; y++){
				int random = randy.nextInt(100);
				if(!names[random].equals("")){  //If it equals null, then this no Cell will be placed (empty)
					list.add(x + " " + y + " " + names[random]);
				}
			}
		}
	}
/**
	 * Determines what Cell, if any, should be placed in the grid,
	 * according to a probability distribution.
	 * 
	 * @param list - list to be filled with data
	 * @param names - Array of cell names distributed by specific probabilities
	 */
Determines what Cell, if any, should be placed in the grid,
according to a probability distribution.

@param list - list to be filled with data
@param names - Array of cell names distributed by specific probabilities
Determines what Cell if any should be placed in the grid according to a probability distribution . @param list - list to be filled with data @param names - Array of cell names distributed by specific probabilities
private void placeCellsWithProbability(List<String> list, String[] names){
		Random randy = new Random();
		for(int x = 0; x < dimension; x++){
			for(int y = 0; y < dimension; y++){
				int random = randy.nextInt(100);
				if(!names[random].equals("")){  
					list.add(x + " " + y + " " + names[random]);
				}
			}
		}
	}
private void placeCellsWithProbability ( List < String > list , String [ ] names ) { Random randy = new Random ( ) ; for ( int x = 0 ; x < dimension ; x ++ ) { for ( int y = 0 ; y < dimension ; y ++ ) { int random = randy . nextInt ( 100 ) ; if ( ! names [ random ] . equals ( "" ) ) { list . add ( x + " " + y + " " + names [ random ] ) ; } } } }
Determines what Cell, if any, should be placed in the grid,
 according to a probability distribution.
Determines what Cell if any should be placed in the grid according to a probability distribution .
//If it equals null, then this no Cell will be placed (empty)