use Independent Random Streams
fun useIndependentRandomStreams(scenarios: IntProgression = myScenarios.indices, startingStreamAdvance: Int = 0, streamAdvanceSpacing: Int? = null)(source)
Assigns non-overlapping pre-run sub-stream advances to selected scenarios.
Common random numbers remain the default when this method is not called. With the default streamAdvanceSpacing of null, each selected scenario is assigned the next cumulative offset based on the previous selected scenario's number of replications. Supplying streamAdvanceSpacing uses a fixed gap between scenarios.
Parameters
scenarios
indices of scenarios to assign; defaults to all scenarios
starting Stream Advance
first assigned advance value; must be >= 0
stream Advance Spacing
fixed spacing between selected scenarios; null uses cumulative replication counts