Couldn't you just use a random number extracted from the first random
number generator to create N new, identical random numbers generates for
the second stage? Or just generate the full data set at the start of the
second stage (from the random number generator), and feed that list into
the subsequent stages?

On Mon Feb 23 2015 at 12:02:04 PM Steve Kay <[email protected]>
wrote:

> I'm trying to build a simulation model with sequential stages. I only want
> to set the seed for the random number generator once at the very start of
> the simulation comparing different possible strategies. Stage 1 is common
> to all strategies and involves running lots of sims to reach stage 2 . At
> this stage my strategies follow different routes. Ideally I'd like to store
> the state of the random number generator just before starting stage 2 (and
> be able to recall it at a later time). That way I can run my first strategy
> through, then reset to the same state at the start of stage 2 and run the
> next strategy through, etc. All strategies then facing the same random
> conditions (without having to rerun stage 1 or set another seed at stage
> 2).. Are there such commands that store and reset the number generator to a
> particular state? Any help much appreciated.
>
> Best,
>
> Steve
>

Reply via email to