Jerehmia
Jerehmia
19 / 1
17th Feb 2022
30th May 2023
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

  • TPTSortaGuy
    TPTSortaGuy
    30th May 2023
    ANDROID USERS: USE !set type brck none THEN FILL IN THE ROW BELOW THE INSL WITH BRCK. IT STILL WORKS FINE
  • Jerehmia
    Jerehmia
    30th May 2023
    Added 1D versions.
  • Jerehmia
    Jerehmia
    10th Apr 2023
    @tptQuantification Everything I make is free to use so have at it :)
  • tptQuantification
    tptQuantification
    10th Apr 2023
    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
  • Jerehmia
    Jerehmia
    25th Feb 2022
    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).
  • Jerehmia
    Jerehmia
    25th Feb 2022
    Update: Used better constants for 30 bits, the new constants A(11, 3, 13) generate sequences with a 2^30-1 period.