Skip to content

Add seed in run_law_model() and run_model() #16

@maximelenormand

Description

@maximelenormand

Add argument seed (NULL by default) in run_law_model() and run_model().

Hint for the way to handle this in java

int seed = Integer.parseInt(args[x]);

Random rand;
if (seed == null) {
rand = new Random();
} else {
rand = new Random(seed);
}

add rand in Multinomial_ function

Multinomial_ij(n, weights, sum, rand);

  random[k] = rand.nextDouble() * sumt;

Metadata

Metadata

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions