@everywhere srand(seed) would give reproducibility, but it would probably not be a good idea since the exact same random variates will be generated on each process. Maybe something like
for p in workers() @spawnat p srand(seed + p) end However, out RNG gives no guarantees about independence of these stream, but for this bootstrap example I would be surprised if the generated variates wouldn't be good enough. 2015-02-26 11:04 GMT-05:00 Ivar Nesje <[email protected]>: > I think something like @everywhere srand(seed) would partially work, but > you'd still suffer from non determinism in the scheduler that might run > different portions of the array in different processes depending on the > current load on your computer.
