Skip to content

Commit

Permalink
increase the number of sampled individuals
Browse files Browse the repository at this point in the history
  • Loading branch information
kavir1698 committed Oct 24, 2023
1 parent 6e922b1 commit 8e29c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function target_species_ids(agent, model::ABM)
elseif foundlen == 0
return Int[]
else
return sample(model.rng, allids, nspecies, replace=false)
return sample(model.rng, allids, nspecies * 2, replace=false)
end

## A bit optimized code
Expand Down

0 comments on commit 8e29c10

Please sign in to comment.