Skip to content

Random Number Generator

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

Random numbers

About the Random Number Generator

Set a range and how many numbers you need, then generate. The no-duplicates option is ideal for lottery-style draws, raffle winners or sampling rows from a dataset.

Numbers are drawn with JavaScript's random generator and are uniformly distributed across the range you set, inclusive of both endpoints.

How to use the Random Number Generator

  1. Enter the minimum and maximum of your range.
  2. Choose how many numbers to draw.
  3. Enable 'No duplicates' if each number must be unique.
  4. Press Generate and copy the results.

Examples

InputResult
1–6, one numberA dice roll
1–49, six unique numbersA lottery line
1–100, ten numbersA random sample

Frequently asked questions

Are the numbers truly random?

They are pseudo-random, which is more than sufficient for games, draws and testing. For cryptographic keys use the Password Generator, which uses the browser's secure random source.

Is my data sent to a server?

No. This tool runs entirely in your browser using JavaScript. Nothing you enter is uploaded, logged or stored by AHRATOOLS.