Key Takeaways
- The period of the Mersenne Twister pseudorandom number generator MT19937 is exactly 2^19937 − 1, which is approximately 4.3 × 10^6001
- In Python's random module, the default random number generator uses the Mersenne Twister algorithm with a state size of 19937 bits
- The RANDU pseudorandom number generator, infamous for poor quality, produces numbers where x_{n+1} = (65539 * x_n) mod 2^31, leading to lattice structures in 3D space
- A Bernoulli random variable takes value 1 with probability p and 0 with 1-p, with variance p(1-p) maximized at p=0.5 where Var=0.25
- Binomial random variable B(n,p) has mean np and variance np(1-p), for n=100, p=0.5 mean=50 std dev≈5
- Poisson random variable with λ=5 has P(X=k) = e^{-5} 5^k / k!, mean=5, variance=5, skewness≈0.632
- Simple symmetric random walk on Z starts at 0, P(return to 0 at step 2n) ~ 1/sqrt(π n) asymptotically, recurrent in 1D
- In 2D random walk, probability of returning to origin is 1, recurrent, but expected return time infinite
- 3D simple random walk is transient, probability of ever returning to origin is about 0.340537
- Quantum random number generators using photon detection achieve up to 1 Gbps entropy rate with Bell inequality violation confirming randomness
- Bell's inequality violation by 2.42σ in Aspect experiment 1982 shows quantum correlations exceed classical local hidden variables
- Loophole-free Bell test by Hensen et al. 2015 closed detection and locality loopholes with CHSH violation S=2.42 ±0.20
- Blum Blum Shub pseudorandom generator is x_{n+1} = x_n^2 mod n where n=pq Blum integers, provably secure under QR factoring assumption, period up to φ(n)^2/4
- NIST Statistical Test Suite includes 15 tests like Frequency, Runs, FFT, passing rate >1-0.01=0.99 for good PRNG at 10^6 bits
- Dieharder battery by Marsaglia has 31 tests, ChaCha20 PRNG passes all with p-values uniform
The blog post explores both pseudorandom algorithms and fundamental principles of true randomness.
Algorithmic Randomness
Algorithmic Randomness Interpretation
Combinatorial Probability
Combinatorial Probability Interpretation
Game Theory Randomness
Game Theory Randomness Interpretation
Information Theory
Information Theory Interpretation
Limit Theorems
Limit Theorems Interpretation
Probability and Random Variables
Probability and Random Variables Interpretation
Pseudorandomness
Pseudorandomness Interpretation
Quantum Randomness
Quantum Randomness Interpretation
Random Graphs
Random Graphs Interpretation
Random Number Generation
Random Number Generation Interpretation
Random Walks
Random Walks Interpretation
Sources & References
- Reference 1ENen.wikipedia.orgVisit source
- Reference 2DOCSdocs.python.orgVisit source
- Reference 3XORSHIFTxorshift.di.unimi.itVisit source
- Reference 4PCG-RANDOMpcg-random.orgVisit source
- Reference 5NATUREnature.comVisit source
- Reference 6ARXIVarxiv.orgVisit source
- Reference 7NVLPUBSnvlpubs.nist.govVisit source
- Reference 8WEBHOMEwebhome.phys.unm.eduVisit source
- Reference 9SIMULsimul.iro.umontreal.caVisit source






