Batch Random Number Generator

Generate Multiple Random Numbers with Live Statistical Analysis

🎯 A Simple Example

Test the quality of our random number generator with these experiments:

1️⃣ Set range 1–10, count 10. Generate a few times. Notice how uneven the results are with small samples.

2️⃣ Now set count to 100. The distribution bars should even out β€” each number appearing roughly 10 times.

3️⃣ Try 1–100 with 200 numbers. Watch the mean converge to 50.5 and the distribution flatten.

4️⃣ Enable "Unique only" with range 1–52, count 5 β€” a virtual card draw!

Fun Fact: RAND Corp's 1955 book A Million Random Digits was generated by an electronic roulette wheel, punched onto cards, and verified by a team of statisticians. One Amazon reviewer calls it: "A terrific reference, but the plot is a bit thin."

Shop Math Games & Statistics Tools

As an Amazon Associate, I earn from qualifying purchases.

Data Source: Von Neumann's Middle-Square Method β€’ Public domain β€’ Solo-developed with AI

Lab Notes

Randomness: Harder to Make Than You Think

The Pioneer: In 1946, John von Neumann proposed the "middle-square method" β€” one of the first algorithms for generating pseudo-random numbers by computer. Take a number, square it, extract the middle digits, repeat. It was clever but flawed: it could fall into loops. Von Neumann himself quipped, "Anyone who considers arithmetical methods of producing random digits is, of course, in a state of sin."

Pseudo vs. True Random: Computers are deterministic machines β€” they follow instructions exactly. So they can't produce "true" randomness. Instead, they use pseudo-random number generators (PRNGs) that produce sequences that look random but are actually determined by a starting "seed." This is good enough for games, simulations, and statistics. For serious cryptography, you need hardware randomness β€” thermal noise, radioactive decay, or even lava lamps (Cloudflare famously uses a wall of them).

Why Statistics? A random number by itself tells you nothing. But generate hundreds and patterns emerge. The mean should converge to the midpoint of your range. The standard deviation tells you how spread out the values are. The mode reveals if any values appear suspiciously often. These tools let you verify that your random source is behaving fairly β€” the same principle behind auditing lottery systems and scientific simulations.

The Gold Standard β€” Mersenne Twister: In 1997, Makoto Matsumoto and Takuji Nishimura published the Mersenne Twister algorithm, named because its period is a Mersenne prime: 219937βˆ’1, a number with 6,002 digits. It passes virtually every statistical test for randomness and remains the default PRNG in Python, Ruby, PHP, R, and MATLAB β€” a record of staying power rare in computer science. The algorithm works by maintaining a "state array" of 624 integers and applying a series of bit operations that are carefully tuned to have this astronomically long period before repeating.

How Do You Test Randomness? Statistician George Marsaglia published the "Diehard" battery of 15 statistical tests in 1995 β€” a rigorous suite that any serious RNG must pass. One test: ask a human to write 100 "random" coin flips. Most people avoid long runs (5 heads in a row feels suspicious), but in a truly random sequence you'd expect a run of 5+ heads about once every 32 flips. Human "random" is never random enough.

True Random in Modern Hardware: Modern Intel and AMD CPUs include a hardware instruction called RDRAND that samples thermal noise from transistors β€” quantum-level randomness built into the chip. The Linux kernel mixes this with keyboard timing, network interrupts, and disk latency to generate /dev/urandom, a cryptographically secure source of true randomness. Every HTTPS connection, every encrypted message, and every browser call to crypto.getRandomValues() ultimately traces back to this physical noise.

Fun Fact: In 1955, the RAND Corporation published A Million Random Digits with 100,000 Normal Deviates β€” a book of nothing but random numbers. It was generated using an electronic roulette wheel and became an essential reference for researchers who needed pre-computed randomness before computers were common. It's still in print and has hilariously earnest Amazon reviews.

πŸ”¬ Explore the Probability Lab

🐾 From the Lab Cat's Entropy & Chaos Laboratory:

I have been asked to comment on "randomness." My observations:

  • The 3 AM Zoomies: Humans claim my midnight sprints are "random." They are not. They follow a precise internal schedule governed by the Chaos Constant (k = kibble Γ— boredomΒ²). The math is advanced.
  • The Keyboard Test: When I walk across a keyboard, the output (e.g., "asdkjf8234hh") appears random. However, this is actually a carefully encoded critique of your document. You are not ready to decode it.
  • True Randomness: I knocked a glass off the table. Which direction did the water go? THAT is true randomness. You're welcome for the demonstration.

Advisory: The RAND Corporation should have consulted a cat. We generate entropy for free. 🐈

In short: These tools are for education and curiosity only. Always verify information independently and consult professionals before making important decisions.

Riatto.ovh Β© 2025 – 2026. Designed and maintained by a solo developer with AI.

Privacy Policy

Also by us: Purr.ovh Β· Snackword.ovh Β· Substack