R/landmine-events.R
landmine_start_cells.RdPicks a different start cell for each of a zone's fires, never on a pixel that cannot burn now, such as one burned earlier in the same year.
n start cells, of the type of pixel, with NA for each fire left without one.
The cells are drawn without replacement from pixel[available]. A zone with fewer available
pixels than fires gives each available pixel a fire, and the remaining fires NA: they could
only burn by starting on a pixel already burned that year, whose area would then be counted
twice.
With every pixel available and n <= length(pixel), the draw is
pixel[sample.int(length(pixel), n)], the same random numbers as SpaDES.tools:::resample(),
which LandMine used before. A year whose fires all reach their targets in the first round is
therefore unchanged.