# 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:** 9

<div class="post-metadata">

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

</div>

> [@jw3126](#):
>
> Ah thanks for pointing that out! I would prefer however if I could launch my simulations without having side effects on the global rng. Is that possible?

Yes, because the “global” rng is actually a task-local state.

---

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