Random Number Generator
Generate cryptographically secure random numbers and statistical distributions with zero latency. Features Web Crypto API non-deterministic entropy, Giveaway Audit Mode with SHA-256 proofs, Box-Muller Gaussian simulation, and batch CSV export.
Online ToolsOperating System Kernel Entropy Pool (window.crypto.getRandomValues)
Web Crypto API Subsystem
Excluded numbers are bypassed during cryptographic sampling
Dynamic Entropy Distribution Visualizer
Giveaway Audit Mode
Cryptographic proof of fairness with SHA-256 fingerprinting for contests and raffles.
No audit entries recorded yet. Click Generate to record verifiable proof.
How to Use the Quantum Random Engine (Step-by-Step)
Master cryptographic number sampling, statistical distributions, and verifiable audit logging.
Define Numerical Range & Batch Size
Set the Minimum and Maximum boundaries. Specify your batch quantity (from 1 up to 10,000 numbers). Use quick presets for standard dice, coins, percentages, or custom lotteries.
Select Statistical Distribution Model
Choose Uniform Distribution for equal discrete probability across all values, or Gaussian / Normal Distribution to model bell-curve clustering around your chosen mean (μ) and standard deviation (σ) via Box-Muller.
Configure Constraints & Exclusions
Toggle 'Allow Duplicates' to draw unique lottery combinations or permutations. Input comma-separated numbers into the 'Exclude List' (e.g., 4, 13, 77) to strictly bypass unwanted numbers.
Activate Giveaway Audit Mode
Enable 'Audit Mode' to generate non-repudiable cryptographic proof. Each generation event is signed with an exact UTC ISO-8601 timestamp and a SHA-256 digital fingerprint for fairness verification.
Generate with Web Crypto Entropy
Click 'Generate' to execute unbiased rejection sampling powered by window.crypto.getRandomValues(). Single draws feature a 400ms visual decipher effect, while batches output instantly.
Analyze Visualizations & Export Data
Inspect the real-time HTML5 Canvas histogram or scatter plot to verify distribution shape and Chi-Square goodness-of-fit. Export your numbers directly to CSV or JSON with a single click.
Architectural Comparison Matrix
Why Web Cryptography API and rejection sampling outperform standard web generators.
| Architectural Feature | Standard Math.random() | Physical TRNG Hardware | ToolsMetrics Quantum Engine |
|---|---|---|---|
| Entropy Source | V8 Pseudo-random Seed (PRNG) | Radioactive decay / Thermal noise | OS Kernel Cryptographic Pool (CSPRNG) |
| Modulo Bias Elimination | Biased (Naive modulo operation) | Varies by post-processor | 100% Unbiased (Rejection Sampling) |
| Audit Trail & Verification | None (Ephemereal & unverified) | Requires external logging | Built-in SHA-256 Cryptographic Hash |
| Statistical Distributions | Uniform pseudo-float only | Raw uniform bits only | Uniform + Box-Muller Gaussian Normal |
| Execution Latency & Privacy | Instant / Some tools log to server | High latency (Hardware bottleneck) | 0ms Strictly Client-Side (100% Private) |
Frequently Asked Questions (FAQ)
Technical and operational answers for data scientists, giveaway organizers, and software engineers.
Q:How do I generate a provably fair winner for a giveaway or social media contest?
Enable 'Audit Mode', set Minimum to 1 and Maximum to your total participant count, set Quantity to 1, and ensure 'Allow Duplicates' is turned off. Click 'Generate' to execute. Next, click 'Copy Audit Proof' to obtain a signed verification block containing the drawn number, exact UTC timestamp, range parameters, and a SHA-256 event hash. Publish this certificate to prove to your audience that the drawing was cryptographically fair and untampered.
Q:Why is the Web Cryptography API superior to JavaScript's Math.random()?
JavaScript's Math.random() uses deterministic algorithms (such as xorshift128+ or Mersenne Twister). An observer recording a small sequence can reverse-engineer the internal state and predict every future outcome. In contrast, the Web Cryptography API (window.crypto.getRandomValues) harvests true non-deterministic physical entropy from operating system hardware interrupts and CPU thermal noise, making outcomes impossible to predict.
Q:What is Modulo Bias, and how does this engine eliminate it?
Modulo bias occurs when a 32-bit random number (0 to 4,294,967,295) is constrained to a range using the remainder operator (%). Unless the range evenly divides 2^32, lower numbers appear slightly more often. Our engine uses cryptographic Rejection Sampling: any raw value falling above the largest clean multiple of the range is discarded and re-drawn, guaranteeing exact, uniform mathematical probabilities.
Q:When should I use Gaussian / Normal Distribution instead of Uniform Distribution?
Use Uniform Distribution when every outcome must have an identical mathematical probability (such as rolling dice, picking raffle tickets, or lottery numbers). Use Gaussian (Normal) Distribution when simulating natural or financial phenomena that cluster around a central average (such as manufacturing tolerances, test scores, or financial asset price variations), implemented via the Box-Muller transform.
Q:How do I exclude specific numbers or generate large datasets without duplicates?
Turn off 'Allow Duplicates' and type any numbers to skip into the 'Exclude Numbers' field (e.g., '4, 13, 77'). The engine automatically verifies that enough unique numbers exist in your range after exclusions, then generates your batch up to 10,000 numbers with guaranteed uniqueness using an optimized Set sampling algorithm.
Q:Can I export generated datasets directly into Excel, Python, or statistical software?
Yes. For batches of 2 or more numbers, click the 'Download CSV' button in the Omni-Grid toolbar to instantly save a formatted CSV file with index and value columns, ready for Microsoft Excel, Google Sheets, Python Pandas, or R. You can also download complete JSON metadata or copy all numbers to your clipboard.
Q:Are my parameters or generated numbers sent to any external server?
No. 100% of all calculations, entropy acquisition, SHA-256 cryptographic hashing, Box-Muller transformations, and canvas visual rendering occur entirely client-side inside your browser's local memory. No data is transmitted to or stored on our servers.
- P(X = k): Discrete uniform probability of drawing integer k from range [a, b].
- N: Total count of possible outcomes in range, where N = b - a + 1.
- L: Rejection sampling upper bound, eliminating modulo bias for random 32-bit integers.
- Z₀: Standard normal Gaussian variate (mean = 0, standard deviation = 1).
- U₁, U₂: Independent uniform random variables generated in (0, 1) by Web Crypto API.
- μ, σ: User-defined target mean (μ) and standard deviation (σ).
- X: Calibrated Gaussian random value scaled to target parameters.
- χ²: Chi-Square test statistic validating statistical uniformity.
- Oᵢ, Eᵢ: Observed frequency and expected frequency for interval i.
What is Random Number Generator?
| Feature | Core Functionality | Practical Application |
|---|---|---|
| Web Crypto API | Pulls true OS-level entropy instead of pseudo-random math. | Generating secure passwords or selecting competition winners. |
| Giveaway Audit Mode | Creates an SHA-256 fingerprint for the generated sequence. | Providing absolute transparency for public raffles and lotteries. |
| Box-Muller Transform | Simulates a Gaussian (Normal) distribution. | Creating realistic data sets for machine learning models. |
| Batch CSV Export | Downloads thousands of generated integers instantly. | Populating massive databases with dummy data for stress testing. |