# Very special RNG

**URL:** https://discourse.julialang.org/t/very-special-rng/73242
**Category:** Package Announcements
**Tags:** random, rng
**Created:** [December 17, 2021, 4:25am UTC](https://discourse.julialang.org/t/very-special-rng/73242 "2021-12-17T04:25:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wildart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wildart/32/57_2.png) [@wildart](https://discourse.julialang.org/u/wildart)
#### Post date: [December 17, 2021, 4:25am UTC](https://discourse.julialang.org/t/very-special-rng/73242/1 "2021-12-17T04:25:00Z")

</div>

Recently, I’ve seen an issue that mentioned using a “special” random number generator from [XKCD-221](https://xkcd.com/221/). Unfortunately, I do not remember where it was. But, if you need such RNG, you can get it from here: [Xkcd221.jl](https://github.com/wildart/Xkcd221).

It’s Julia Random API fully conformant drop-in replacement to default RNG. It should work with most build-in numerical types, and functions from Random package.

Thanks to @rfourquet for his work on [JuliaRandom](https://github.com/JuliaRandom) ecosystem.

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [December 17, 2021, 10:17am UTC](https://discourse.julialang.org/t/very-special-rng/73242/2 "2021-12-17T10:17:41Z")

</div>

> [@wildart](#):
>
> Recently, I’ve seen an issue that mentioned using a “special” random number generator from [XKCD-221](https://xkcd.com/221/). Unfortunately, I do not remember where it was.

Maybe

> <https://github.com/JuliaRandom/StableRNGs.jl/issues/6>
>
> As suggested in https://github.com/giordano/RandomBasedArrays.jl/issues/4, it'd …be useful to implement the standard IEEE-vetted random number generator whose specification is described in \[xkcd#221\](https://xkcd.com/221/). I think it fits very well in this package, it seems very stable. It should also be rather simple to implement.

? Thanks for implementing it!

---

<div class="post-metadata">

### Author: ![mschauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mschauer/32/13946_2.png) [@mschauer](https://discourse.julialang.org/u/mschauer)
#### Post date: [December 17, 2021, 10:17am UTC](https://discourse.julialang.org/t/very-special-rng/73242/3 "2021-12-17T10:17:56Z")

</div>

Haha, that is even super useful (if you want to understand the API)!

---

<div class="post-metadata">

### Author: ![rfourquet](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rfourquet/32/3610_2.png) [@rfourquet](https://discourse.julialang.org/u/rfourquet)
#### Post date: [December 17, 2021, 10:37am UTC](https://discourse.julialang.org/t/very-special-rng/73242/4 "2021-12-17T10:37:09Z")

</div>

Very nice feat, I was procrastinating on this issue Mosè mentioned and you made it! And you even managed to fully generalize the solution to any seed! 😃
