public int hitBalls(){
		double randy = r.nextDouble();
		int balls = 0;
		while (randy > BALLS_HIT[balls]){
			balls++;
		}
		
		for (int i = 0; i < balls; i ++){
			// place a ball in a random plot
			double distance = r.nextDouble();
			int row = 1;
			while (row < DISTANCE_HIT.length && distance >= DISTANCE_HIT[row - 1]){
				row++;
			}
			double width = r.nextDouble();
			int column = 1;
			while (column < WIDTH_HIT.length && width >= WIDTH_HIT[column  - 1]){
				column++;
			}
			data.incrementElement(row, column);
		}
		return balls;
	}