Skip to main content

Random Number Generator

Generate true cryptographically secure random integers, decimal values, lottery picks, or non-repeating number sequences with hardware entropy (Web Cryptography API).

5 numbers
Generated Set (5 Unique Integers)
42, 17, 88, 3, 65
Entropy: CSPRNG (crypto.getRandomValues)
Property Configuration / Standard Observed Metric
Count Generated Requested batch size 5
Sample Minimum Smallest value in set 3
Sample Maximum Largest value in set 88
Sample Sum & Average Σx and Arithmetic Mean Sum: 215 | Mean: 43.00
Theoretical Range Span [Min, Max] domain size 100 possible integers
Entropy Security Random source standard Cryptographically Secure (CSPRNG)
Probability & Statistical Context
  • Cryptographic Randomness: Powered by the browser's native crypto.getRandomValues(), delivering hardware-seeded uniform entropy without modulo bias.
  • Permutation Probability: In a pool of 100 numbers, drawing 5 unique items yields 75,287,520 possible combinations.
  • Sampling Mode: Sampled without replacement (each integer appears at most once).
* Technical Note: Numbers are sourced client-side using OS-level system entropy (W3C Web Cryptography API). Suitable for lotteries, randomized trials, statistics, cryptographic keys, and gaming.

Common Random Sampling Benchmark Ranges

Application Default Range Default Count Uniqueness Required
Coin Flip Simulation 0 to 1 (or 1 to 2) 1 – 100 No (With replacement)
Standard Die Roll (D6) 1 to 6 1 – 10 No
Tabletop RPG Die (D20) 1 to 20 1 No
Percentage Chance (0–100%) 1 to 100 (or 0.00 to 1.00) 1 No
Lottery (Pick 6 / Powerball pool) 1 to 69 5 – 6 Yes (Strictly unique)
Bingo Ball Draw 1 to 75 1 – 75 Yes (Strictly unique)

Algorithmic Integrity & Modulo Bias Elimination

Uniform Distribution Algorithm (Rejection Sampling):
Standard Math.random() % range introduces modulo bias because 232 is rarely an exact multiple of the requested interval. This tool implements unbiased rejection sampling:
limit = floor((2³² - 1) / range) × range
Values generated above limit are discarded and redrawn, guaranteeing mathematical uniformity across all bins.
✓ Copied to Clipboard!