Prime Number Generator
Generate the first N prime numbers or list all primes inside a custom range. Includes prime count, largest prime, total sum, average prime gap, and twin-prime pair count for quick number-theory exploration.
Generate random numbers using three statistical distributions — Integer (discrete uniform), Float (continuous uniform), and Normal (Gaussian bell curve). Supports seeded output for reproducibility, no-duplicates mode, sort order, and instant statistics including mean, median, standard deviation, and mode.
A random number generator (RNG) produces sequences of numbers that lack any predictable pattern. This tool uses a seeded Linear Congruential Generator (LCG) — a fast, deterministic pseudo-random algorithm used in programming languages and simulation software worldwide. It supports three distinct statistical distributions for different use cases.
Each integer in the range [min, max] has an equal probability of being selected. Formula: value = min + floor(rng() × (max − min + 1))
Example: Rolling a standard die — 6 integers [1, 6], each with exactly 1/6 probability.
Every value in [min, max) is equally likely. Used in probability simulations and Monte Carlo integration. Formula: value = min + rng() × (max − min)
Uses the Box-Muller transform to convert two uniform random numbers into normally-distributed values. The result clusters around the mean (μ) with spread controlled by standard deviation (σ).
68% of values fall within μ ± 1σ | 95% within μ ± 2σ | 99.7% within μ ± 3σ
Settings: Distribution = Integer, Count = 6, Min = 1, Max = 49, No duplicates = ✓, Sort = Ascending
Generate pairs of uniform floats in [0, 1] and check if x² + y² ≤ 1 (inside the unit circle). The ratio of interior points × 4 approximates π. With 10,000 pairs this typically gives π ≈ 3.14 ± 0.01.
Settings: Distribution = Normal, Count = 100, Mean = 70, Std Dev = 12. Expected result: ~68 scores between 58–82, ~95 between 46–94, mean ≈ 70.
Random Number Generator is part of the Math & Statistics Calculators collection. If you want a broader view of similar workflows, open the Math & Statistics Calculators category page or browse all QuickTools categories.
Common next steps after this tool include Prime Number Generator, Ethereum ROI Calculator and Bitcoin ROI Calculator.
Generate the first N prime numbers or list all primes inside a custom range. Includes prime count, largest prime, total sum, average prime gap, and twin-prime pair count for quick number-theory exploration.
Calculate Ethereum ROI, net profit, annualized return, break-even sell price, and holding-period performance using ETH buy price, sell price, amount, dates, and fees.
Calculate your Bitcoin investment return, profit/loss, and annualized ROI. Enter buy/sell price, amount, dates, and fees to see your crypto performance.
Calculate all six types of mean simultaneously — Arithmetic, Geometric, Harmonic, Quadratic (RMS), Weighted, and Trimmed. Paste any dataset and instantly get the right average for your context, plus median, mode, standard deviation, variance, and coefficient of variation.
Convert short MP4, WebM, MOV, AVI, MKV, and other video clips into GIFs online with trim controls, frame-rate options, and private in-browser processing.
Create animated GIFs from a sequence of images online with per-frame delay, output width, loop count, and private in-browser processing — no upload required.
Convert an animated GIF into a compact MP4 or WebM video file online with output width, duration, and FPS controls — processed entirely in your browser, no upload required.
Convert an animated GIF into a compact WebM video file online using VP9 or VP8 — output width, duration, and FPS controls with private in-browser processing, no upload required.