Security Tools

Random Number Generator

Generate cryptographically secure random integers or decimals with custom ranges, even/odd filters, duplicate prevention, and bulk export.

100% Client-Side Hardware CSPRNG

Random numbers are calculated entirely in your browser using native Web Crypto (crypto.getRandomValues()) with unbiased rejection sampling. Zero numbers, ranges, or parameters are transmitted to any server or recorded in cookies.

Active Range [1, 100]
Mode & Type Integer
Possible Values 100 values
Single Draw Odds 1.00% (1/100)
Minimum Number (Inclusive) Lower Boundary
Maximum Number (Inclusive) Upper Boundary
Presets:
Number Mode
Quantity to Generate Max 10,000
Parity Filter (Integer Only)
Output Format
42
Inclusive range [1, 100] • Hardware CSPRNG
Generated Random Numbers (0)
# Random Number Output Action

What is a Random Number Generator?

A Random Number Generator (RNG) is a computational algorithm that produces numerical values within a specified minimum and maximum interval such that each outcome is statistically independent and exhibits no predictable pattern. Random numbers are crucial across cryptography, statistical sampling, Monte Carlo simulations, raffle drawings, scientific benchmarking, and gaming.

CSPRNG vs. Ordinary Pseudo-Randomness

1
Hardware Entropy Pool

Standard functions like Math.random() rely on deterministic formulas seeded by clock time. We invoke crypto.getRandomValues() backed by operating system entropy.

2
Zero Modulo Bias

Mapping random bytes to arbitrary ranges via simple modulo (rand % range) skews distribution toward lower values. We employ rejection sampling to guarantee 100% equal probability.

3
Inclusive Boundaries

Both the minimum and maximum boundaries are fully inclusive: $x \in [\text{Min}, \text{Max}]$. Generating between 1 and 10 gives 1 and 10 the exact same odds as any number in between.

4
Sampling Without Replacement

When unique generation is requested, numbers are drawn without replacement, ensuring zero duplicate values while validating that the requested quantity fits within the range.

Random Integers vs. Decimal Numbers

Random Integer Mode

Generates whole numbers from discrete mathematical sets: $\mathbb{Z}$. The total number of available outcomes in an inclusive integer range $[A, B]$ is strictly:

Total Integers N = (Maximum - Minimum) + 1

Filtering by Even or Odd halves the pool accordingly, rejecting non-matching integers before output.

Decimal Floating-Point Mode

Generates rational decimal numbers with customizable precision $P$ (from 1 to 10 decimal digits). Outcomes are scaled uniformly across $10^P$ discrete increments:

Total Decimals N = (Maximum - Minimum) × 10P + 1

Values are rounded cleanly to $P$ decimal places without boundary bleed outside $[\text{Min}, \text{Max}]$.

How to Generate Random Numbers

1
Set Minimum & Maximum

Enter your range boundaries (e.g. 1 to 100, -50 to 50) or select a pre-configured shortcut button like Dice (1 to 6).

2
Choose Integer or Decimal

Select whether you need whole numbers or floating-point decimals with precision from 1 to 10 decimal places.

3
Configure Quantity & Parity

Choose how many numbers to generate (up to 10,000), enable duplicate prevention, and filter by even or odd if needed.

4
Generate & Download

Click Generate. Copy numbers with one click or export bulk batches to .txt, .csv, or .json files immediately.

Frequently Asked Questions

A random number generator produces numerical values within a specified range such that each number is selected with unbiased mathematical probability.
Enter your minimum and maximum numbers, choose your preferred format (integer or decimal), select your desired quantity, and click "Generate Random Number". Results are displayed instantly.
Yes. You can generate up to 10,000 independent random numbers in a single batch, with instant one-click export to TXT, CSV, or JSON formats.
Yes. Checking "Unique Numbers (No Duplicates)" guarantees that no number repeats within the current batch. The tool validates that the requested quantity does not exceed the total available values in your range.
Yes. Both minimum and maximum inputs fully support negative values (e.g. -100 to 100, -50 to -10, or -10 to 0).
Yes. Switch to "Decimal (Float)" mode to select your desired precision from 1 up to 10 decimal places.
Yes, both minimum and maximum values are fully inclusive. In a range of 1 to 100, both 1 and 100 have an identical 1% probability of being drawn.
Yes. In integer mode, you can select "Even Numbers Only" or "Odd Numbers Only". The tool validates that matching numbers exist in the specified range.
Yes. Numbers are generated using the Web Cryptography API (crypto.getRandomValues()) with rejection sampling to eliminate modulo bias. Unlike standard pseudo-random functions like Math.random(), outputs cannot be predicted.
No. All computations occur locally in your browser's JavaScript execution thread. No numbers, parameters, or IP logs are saved to any server or database.

Related Developer & Math Tools