# Add the default RNG as explicit type in Random?

**URL:** <https://discourse.julialang.org/t/add-the-default-rng-as-explicit-type-in-random/68551>\
**Category:** Internals & Design\
**Created:** [September 21, 2021, 9:07pm UTC](https://discourse.julialang.org/t/add-the-default-rng-as-explicit-type-in-random/68551 "2021-09-21T21:07:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [September 21, 2021, 9:07pm UTC](https://discourse.julialang.org/t/add-the-default-rng-as-explicit-type-in-random/68551/1 "2021-09-21T21:07:25Z")

</div>

Apparently at some point recently the default RNG was changed from MersenneTwister to some xorshift based thing. But Random still only has MersenneTwister and RandomDevice as the available generators. It seems like it’d be useful to always have whatever the default RNG is as an explicit type in Random as well, otherwise you can’t easily use an explicit RNG argument that behaves the same as the default one.

(or maybe this is just the documentation being out of date?)

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [September 21, 2021, 9:13pm UTC](https://discourse.julialang.org/t/add-the-default-rng-as-explicit-type-in-random/68551/2 "2021-09-21T21:13:41Z")

</div>

The docs aren’t out of date. Xoshiro based rngs are added in 1.7, which isn’t fully released yet (we’re still at rc1). Once 1.7 is released, the docs will have this change.

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [September 21, 2021, 9:15pm UTC](https://discourse.julialang.org/t/add-the-default-rng-as-explicit-type-in-random/68551/3 "2021-09-21T21:15:02Z")

</div>

Ah, that makes sense! Ha, I’ve been using 1.7 betas for so long I’d forgotten it hadn’t been actually released yet!
