x_{n+1} = ⌊x_n² / 10²⌋ mod 10⁴x_{n+1} = 65539 · x_n mod 2³¹x_{n+1} = (1664525·x_n + 1013904223) mod 2³²s′ = a·s + c mod 2⁶⁴; y = rotr32(((s≫18)⊕s)≫27, s≫59)y = rotl(s₁·5, 7)·9; Linear XOR/Shift/Rotate on (s₀,s₁,s₂,s₃)20 Rounds ARX QuarterRound(a,b,c,d) on 512-bit RedButton BlockRANDU? George Marsaglia (1968) proved that multiplicative congruential generators fall on parallel hyperplanes. Because IBM chose 65539 = 2¹⁶ + 3 for fast hardware shift-adds on the System/360, xₙ₊₂ = (2¹⁶ + 3)² xₙ = (2³² + 6·2¹⁶ + 9)xₙ ≡ 6(2¹⁶ + 3)xₙ − 9xₙ = 6xₙ₊₁ − 9xₙ (mod 2³¹). Thus 9uₙ − 6uₙ₊₁ + uₙ₊₂ is always an exact integer in [−5, −4, ..., 9] — trapping every 3D point on 15 planes! Passes 1D uniformity tests, fooling scientists for years. But because 65539 = 2¹⁶ + 3, every consecutive triple satisfies x_{n+2} − 6x_{n+1} + 9x_n ≡ 0 (mod 2³¹), trapping all 3D points on 15 parallel planes!
x_{n+1} = 65539 · x_n mod 2³¹31-bit state • Period: 2²⁹ ≈ 5.36 × 10⁸0x8f4c2a91e7b03d56) // Level 2: IBM System/360 RANDU (1968)
let x = (seedLo32 | 1) & 0x7fffffff; // odd 31-bit seed
function nextRANDU() {
// 65539 = 2^16 + 3 => x_{n+2} = 6*x_{n+1} - 9*x_n (mod 2^31)
x = Number((BigInt(x) * 65539n) & 0x7fffffffn);
return x / 2147483648;
} Unlike opaque Math.random() calls, every number below discloses its exact Red Button nanosecond timestamp (2026-11-05T03:10:00.482910374Z), 64-bit SplitMix64 seed (0x8f4c2a91e7b03d56), internal state before and after the step, and exact transformation formula.
| Draw # | Generator Engine | Red Button Seed | Internal State Before | Exact Transition & Scrambler Applied | Raw 32-Bit Word & Low 8 Bits | Uniform u_k ∈ [0, 1) | Final Output |
|---|---|---|---|---|---|---|---|
#1 | L6: MathGod ChaCha20-RB | 0x8f4c2a91e7b03d56 | Blk#0:W[0] | ChaCha20_ARX20(RedButton_ns)[0] → 0x2d39c123 | 0x2d39c123LSB8: 00100011 | 0.17666251 | 18 |
#2 | L6: MathGod ChaCha20-RB | 0x8f4c2a91e7b03d56 | Blk#0:W[1] | ChaCha20_ARX20(RedButton_ns)[1] → 0x239c7316 | 0x239c7316LSB8: 00010110 | 0.13910598 | 14 |
#3 | L6: MathGod ChaCha20-RB | 0x8f4c2a91e7b03d56 | Blk#0:W[2] | ChaCha20_ARX20(RedButton_ns)[2] → 0x21a0343d | 0x21a0343dLSB8: 00111101 | 0.13135077 | 14 |
#4 | L6: MathGod ChaCha20-RB | 0x8f4c2a91e7b03d56 | Blk#0:W[3] | ChaCha20_ARX20(RedButton_ns)[3] → 0xfaaa0f7f | 0xfaaa0f7fLSB8: 01111111 | 0.97915742 | 98 |
#5 | L6: MathGod ChaCha20-RB | 0x8f4c2a91e7b03d56 | Blk#0:W[4] | ChaCha20_ARX20(RedButton_ns)[4] → 0xf8b21b2d | 0xf8b21b2dLSB8: 00101101 | 0.97146768 | 98 |
#6 | L6: MathGod ChaCha20-RB | 0x8f4c2a91e7b03d56 | Blk#0:W[5] | ChaCha20_ARX20(RedButton_ns)[5] → 0x11698167 | 0x11698167LSB8: 01100111 | 0.06801614 | 7 |
#7 | L6: MathGod ChaCha20-RB | 0x8f4c2a91e7b03d56 | Blk#0:W[6] | ChaCha20_ARX20(RedButton_ns)[6] → 0x4431e0af | 0x4431e0afLSB8: 10101111 | 0.26638607 | 27 |
#8 | L6: MathGod ChaCha20-RB | 0x8f4c2a91e7b03d56 | Blk#0:W[7] | ChaCha20_ARX20(RedButton_ns)[7] → 0x839d64f4 | 0x839d64f4LSB8: 11110100 | 0.51412040 | 52 |
#9 | L6: MathGod ChaCha20-RB | 0x8f4c2a91e7b03d56 | Blk#0:W[8] | ChaCha20_ARX20(RedButton_ns)[8] → 0x365512ce | 0x365512ceLSB8: 11001110 | 0.21223562 | 22 |
#10 | L6: MathGod ChaCha20-RB | 0x8f4c2a91e7b03d56 | Blk#0:W[9] | ChaCha20_ARX20(RedButton_ns)[9] → 0xd5476043 | 0xd5476043LSB8: 01000011 | 0.83312036 | 84 |
#11 | L6: MathGod ChaCha20-RB | 0x8f4c2a91e7b03d56 | Blk#0:W[10] | ChaCha20_ARX20(RedButton_ns)[10] → 0x49bad5f2 | 0x49bad5f2LSB8: 11110010 | 0.28800714 | 29 |
#12 | L6: MathGod ChaCha20-RB | 0x8f4c2a91e7b03d56 | Blk#0:W[11] | ChaCha20_ARX20(RedButton_ns)[11] → 0x97182b10 | 0x97182b10LSB8: 00010000 | 0.59021253 | 60 |