# How to get the current “random” seed?

**URL:** <https://discourse.julialang.org/t/how-to-get-the-current-random-seed/31640>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 28, 2019, 11:46pm UTC](https://discourse.julialang.org/t/how-to-get-the-current-random-seed/31640 "2019-11-28T23:46:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![monty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/monty/32/44234_2.png) [@monty](https://discourse.julialang.org/u/monty)\
**Post date:** [November 28, 2019, 11:46pm UTC](https://discourse.julialang.org/t/how-to-get-the-current-random-seed/31640/1 "2019-11-28T23:46:13Z")

</div>

How to get the current “random” seed?

`Random.GLOBAL_RNG.seed` is not available now.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 29, 2019, 6:31am UTC](https://discourse.julialang.org/t/how-to-get-the-current-random-seed/31640/2 "2019-11-29T06:31:48Z")

</div>

Why do you need it? It is not a sufficient statistic for the _state_ of the RNG.

---

<div class="post-metadata">

**Author:** ![marius311](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marius311/32/3953_2.png) [@marius311](https://discourse.julialang.org/u/marius311)\
**Post date:** [November 29, 2019, 6:44am UTC](https://discourse.julialang.org/t/how-to-get-the-current-random-seed/31640/3 "2019-11-29T06:44:56Z")

</div>

What used to be `Random.GLOBAL_RNG` is now `Random.default_rng()` (and also its thread-local I believe).
