Skip to content

Random seed #334

Answered by abensonca
MarcoMarinucci asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Yes, the random number seed is fixed (either by what you set it to in the parameter file, or to the default value) for each run.
  2. To change the random number seed you'll want to change the parameter "randomNumberGeberator" (or add it if it's not present),, e.g.:
  <!-- Random number generation -->
  <randomNumberGenerator value="GSL">
    <seed value="8122"/>
  </randomNumberGenerator>

You can change the value of seed to some other integer to generate a different random realization of trees.

A couple of additional points:

  1. Each tree is actually given it's own random number generator seeded with a value of seed+treeIndex, where seed is the value given in the parameter above and treeIndex

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MarcoMarinucci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants