Modern 🔀PRNG

by Ricardo Fernández Serrata

Version 1 (March 8, 2022)

Download (10 downloads)

A better seedable random generator based on xoshiro128**. I made this as a replacement for my legacy code, "🔀Seed RNG" flow: llamalab.com/automate/community/flows/38704

Source: https://prng.di.unimi.it/xoshiro128starstar.c

The fact that this algorithm is highly parallelizable made it SO EASY to reduce the block-count by using a hack similar to "destructuring assignment" in JS. The only downside is that discarding/creating arrays (instead of in-place mutation) adds a bit of latency, but it's compensated by expression speed (because exprs are faster than blocks).

If you find any bugs, let me know. I tested this A LOT, and made sure that everything works exactly like the standard (except the seed to state conversion)

3.7 average rating from 3 reviews

5 stars
0
4 stars
2
3 stars
1
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.