The pattern I’ve used above should be fine. For something more elegant, see: Sum result of Threads.foreach() - #10 by tkf
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Parallel Mersenne Twister | 18 | 2467 | January 19, 2020 | |
| How to run multiple threads, all using the same sequence of pseudorandom numbers, in Julia? | 9 | 1126 | August 30, 2021 | |
| Number of threads available seems random (using @spawn) | 19 | 1385 | August 25, 2020 | |
| Poor performance on cluster multithreading | 40 | 4240 | July 11, 2018 | |
| Multithreading and random number generators | 7 | 3702 | March 15, 2021 |