VS provides an option of producing an exact copy of a generated stream by calling the vslCopyStream function:
vslCopyStream( newstream, srcstream )
A new stream
is created with parameters (stream descriptive information) that are exactly the same as those of the source stream
at the moment of calling
. The stream state of
is exactly the same as that of
, and both the streams generate random numbers using the same BRNG.
Another service function
copies the current state of the stream:
vslCopyStreamState( deststream, srcstream )
are assumed to have been created by one of the above methods, both of the streams being related to the same BRNG. The function
copies the information about the current stream state from
. Other stream-related information remains unchanged.