Specifying the Simulation Seed
In LEGION Simulator, with a LEGION Simulation File open, there is an option on the Playback menu called 'Simulation Seed'. The 'seed' is used to start the sequence of calculations made by the software during a simulation (such calculations govern the preferred speed of Entities, their size, and how they make decisions within the course of a simulation). This option enables you to play back a simulation using either a new series of calculations or the exact same calculations used in a previous simulation.
Using the same seed as a previous simulation can be useful if you spot problems or errors in a playback and wish to either study the problem area more closely in the next playback or adjust the geometry of a model to see whether such changes make a difference when the same seed is used.
To aid seed selection, the number of the current seed is now displayed in the Output Bar of LEGION Simulator, for example: "Simulator is using seed 772736266"
To use the Simulation Seed option:
-
Open a LEGION Simulator File.
The number of the seed to be used in the next playback is displayed in the Output Bar.
- Play back the simulation one or more times as required, selecting to return the simulation to its start time.
-
To specify a particular seed, select
.
The ‘Simulation seed point’ dialog is displayed.
- Select the Use seed option.
- Enter the number of the seed you want to use again in the edit box (check the Output Bar for seed numbers).
- Click OK.
-
Play back the simulation again.
The simulation will now use this seed every time you play back.
-
To change the seed, repeat steps 3 to 6 but select the
Use random seed option.
This will cause the seed to change each time simulation is restarted.