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 | |
---|---|---|---|---|
Threads and stdlib Random | 4 | 480 | March 19, 2021 | |
Best practices for using random number generators with threads | 0 | 417 | December 11, 2019 | |
Multithreaded random: different behaviour in Julia >= 1.5 (not just different stream) | 6 | 546 | March 23, 2021 | |
Random number flow independent from the number of threads | 3 | 486 | March 24, 2021 | |
Why is this line like this in Base.Random? | 3 | 487 | March 28, 2020 |