On 08/16/2011 01:28 AM, Paul Gilmartin wrote:
> Suppose two or more asynchronous ("addpipe") pipelines
> begin with "random" stages, and at least one specifies
> a "snumber" (seed). Will the random stages interact, or
> will each generate the same sequence of numbers as if the
> other didn't exist?
Doesn't matter if they're synchronized or not, or if they're in the same
or different pipeline sets, each one has its own counter and generates
its own sequence independently. Try this:
PIPE (end /) random 1000 23|a:gather|specs 1.4 c2d 1|join 3|take 25|cons
/random 1000 23|take 25|buffer|a:
/literal addpipe random 1000 23||*:|pipcmd|a:
/literal addpipe random 1000 23||*:|pipcmd|take 25|buffer|a:
and you'll see that all four sequences are the same. In analogy to
Rexx, it's as though they're separate Rexx programs, as opposed to
internal routines within a single program.
¬R