Random Number Generator

Calculators

Generate unbiased random integers within an inclusive range.

Set your range

Your random selection

On device
Clarity starts with the right inputs.

Set the values, then run the tool.

On-device processing. Your input stays in your browser.Privacy details
Instructions, example & limitations

How it works

Enter integer minimum, maximum and count, then generate. Duplicates are allowed.

Example

Minimum 1 and maximum 6 produces a cryptographically random dice roll.

Know the limits

Both bounds are inclusive. Safe integers only, a range of at most 2³² values and up to 1,000 results.

Processing stays in your browser. Files and text are never sent to a processing service. Page assets still load from this website.

About Random Number Generator

Generate integers within the chosen bounds using browser cryptographic randomness. Set the minimum, maximum and number of results before running the tool. Bounds are inclusive, so both endpoint values can appear. Each draw is independent and duplicate values are possible; this is not a shuffle or a unique-sample generator.

The workspace supports batches up to 1,000 results and rejects invalid numeric ranges. Check the range before using the output for a demonstration or randomized test. Cryptographic randomness improves the source of each draw, but it does not provide an auditable public lottery, a provably fair draw or a record of who participated. Use a process designed for those requirements when they matter.

How to Use Random Number Generator

  1. Enter your inclusive minimum and maximum integer values.
  2. Specify how many unique or repeatable random numbers you need.
  3. Generate numbers using cryptographic randomness and copy the list or individual values.

Key Features & Privacy

  • Generates unbiased random integers within any inclusive range using rejection sampling.
  • Powered by browser Web Crypto API rather than pseudo-random Math.random() algorithms.
  • Runs entirely in client-side memory: numbers are never recorded, tracked, or sent to a server.

Practical examples

Generate randomized test inputs

Create a batch inside an integer range and paste the results into a test fixture. Save the fixture if you need to reproduce the exact run later.

Minimum 1 and maximum 6 model a six-sided die.

Select a simple index

Generate one number against a fixed numbered list. Confirm the list boundaries first and accept that a later independent run can repeat the result.

For a list numbered 1 to 20, use those same inclusive bounds.

Detailed walkthroughs

Continue your workflow

Choose your next step. Content is not transferred automatically.

  • Password Generator — Generate strong passwords alongside randomized numerical seeds.
  • Sort Text Lines — Order generated random lists numerically or alphabetically.

Random Number Generator FAQs

Are the minimum and maximum included?

Yes. Both bounds are inclusive; a range from 1 to 6 can produce any of those six integers.

Can a generated number appear more than once?

Yes. Duplicates are allowed. This generator does not promise a unique sample or a shuffled list.

How are bias and size limits handled?

Cryptographic rejection sampling avoids modulo bias. Bounds must be safe integers, the range can contain at most 2³² values, and each operation can return up to 1,000 numbers.

Is Random Number Generator free, and is my input uploaded?

It is free and requires no account. Processing happens in your browser with zero tool-input uploads to a processing server. Website assets still load from this host, whose provider may keep normal access logs.

Take your toolkit offline.

Download public pages and processing libraries for this browser. Your files and inputs are never cached.

Find your next tool

Quick picks

↑↓ to navigate Enter to open