# Random numbers and threads

**URL:** https://discourse.julialang.org/t/random-numbers-and-threads/77364
**Category:** General Usage
**Tags:** question, multithreading, random
**Created:** [March 3, 2022, 3:31pm UTC](https://discourse.julialang.org/t/random-numbers-and-threads/77364 "2022-03-03T15:31:24Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [March 3, 2022, 4:11pm UTC](https://discourse.julialang.org/t/random-numbers-and-threads/77364/6 "2022-03-03T16:11:08Z")

</div>

The pattern I’ve used above should be fine. For something more elegant, see: [Sum result of Threads.foreach() - #10 by tkf](https://discourse.julialang.org/t/sum-result-of-threads-foreach/76701/10)

---

_[View the full topic](https://discourse.julialang.org/t/random-numbers-and-threads/77364)._
