Random Number Generator

Generate random numbers in any range, with or without duplicates.

Tool

Was this tool useful?

About this tool

About Random Number Generator

Pick lottery numbers, run giveaways or create test data using a secure random source.

How it works

Uses crypto.getRandomValues() with rejection sampling so every number in the range is equally likely.

Example

6 unique numbers from 1–49 might give 3, 17, 22, 31, 40, 46.

How to use this tool

  1. Enter the minimum and maximum.
  2. Choose how many numbers and whether repeats are allowed.
  3. Click Generate.

Frequently asked questions

Is it truly random?

It uses your browser’s cryptographically secure generator, which is suitable for fair draws.

Can I sort the results?

Yes, tick “Sort results”.

Does the Random Number Generator work on my phone?

Yes. The Random Number Generator is designed for phones, tablets and computers and works in any modern browser. Nothing needs to be installed and your inputs are not stored.