Random Number Generator

Generate unique or repeatable random numbers within custom ranges, supporting multiple draws, sorting, and cryptographic randomness.

In-Browser

Loading tool…

About Random Number Generator

Runs in your browser

Generate unique or repeatable random numbers within custom ranges, supporting multiple draws, sorting, and cryptographic randomness. Typical uses include lottery and raffle number drawings, statistical sampling and research randomization, tabletop gaming, board games, and probability simulations, and generating random security PINs and verification codes. The focused Random Number Generator workflow is intended for people who need a dependable result without opening a larger desktop application or creating an account for a one-off task.

Generates random bytes using window.crypto.getRandomValues and maps them uniformly across the requested integer interval using rejection sampling to eliminate modulo bias. Its controls cover cryptographically secure pseudo-random number generator (CSPRNG), customizable range with support for negative and large integers, batch generation with unique (no repeats) or duplicate options, ascending, descending, or raw sequence sorting, and one-click clipboard copy and formatted text download. The tool accepts min Value, Max Value, and Count. It produces list or grid of formatted numbers that can be reviewed before it is saved.

Unique number generation cannot exceed the range span (e.g. max - min + 1). JavaScript safe integer limits apply (values between -9,007,199,254,740,991 and 9,007,199,254,740,991). When Random Number Generator is marked as in-browser, its work remains on the current device; available memory, processor speed, browser support, permissions, and source quality can still affect the result. Keep the original material supplied to Random Number Generator until its list or grid of formatted numbers has been checked for the intended use.

How It Works

Generates random bytes using window.crypto.getRandomValues and maps them uniformly across the requested integer interval using rejection sampling to eliminate modulo bias.

πŸ”’ 100% Client-Side In-Browser Execution: All processing occurs locally in your device memory. No files, documents, or data are transmitted over the internet or stored on remote servers.

How to Use Random Number Generator

1

Set your desired minimum and maximum integer range (e.g. 1 to 100).

2

Specify how many numbers you want to generate in a single batch.

3

Toggle options such as "Allow Duplicates" or "Sort Numbers".

4

Click "Generate Numbers" to instantaneously compute the result and copy to clipboard.

Key Capabilities

Cryptographically secure pseudo-random number generator (CSPRNG)
Customizable range with support for negative and large integers
Batch generation with unique (no repeats) or duplicate options
Ascending, descending, or raw sequence sorting
One-click clipboard copy and formatted text download

Application Scenarios

Lottery and raffle number drawings
Statistical sampling and research randomization
Tabletop gaming, board games, and probability simulations
Generating random security PINs and verification codes

Technical Constraints

β€’Unique number generation cannot exceed the range span (e.g. max - min + 1).
β€’JavaScript safe integer limits apply (values between -9,007,199,254,740,991 and 9,007,199,254,740,991).

Frequently Asked Questions about Random Number Generator

Standard Math.random() is pseudo-random and predictable. Pexlii uses the browser Web Crypto API, which draws on operating system entropy for true cryptographic unpredictability.

Related Tools

Frequently paired utilities.