This is a 30-bit 60Hz subframe implementation of George Marsaglia's XorShift32 random number generator. There also is a 29-bit version with normalized numbers (starting from 0 with the 30-bit set always).
prng
subframe
random
Comments
-
ANDROID USERS: USE !set type brck none THEN FILL IN THE ROW BELOW THE INSL WITH BRCK. IT STILL WORKS FINE
-
Added 1D versions.
-
@tptQuantification Everything I make is free to use so have at it :)
-
I'm using your prng to write junk data, because all the other rng designs i've found fall apart really suprisingly quickly in weird ways
-
Clarification: after the update this is an almost perfect pseudo random number generator, it generates a sequence of 1073741823 numbers in which every number between 1 and 1073741823 occurs exactly once (in random order of course).
-
Update: Used better constants for 30 bits, the new constants A(11, 3, 13) generate sequences with a 2^30-1 period.