Parallel random numbers are somewhat nontrivial. |
If have N processors, must have numbers independent within and between processors. |
See "Solving Problems on Concurrent Processors"
|
One strategy is to have one stream and make every N'th number go to a given processor. This can be done very efficiently as described in reference above. |
The result is:
|