Skip to content

Random Number GeneratorNew

Pick random numbers in any range.

Runs in your browser · free · no sign-up

Uses your browser’s cryptographic random generator (crypto.getRandomValues) with no modulo bias.

About the Random Number Generator

Pick a lucky draw winner, choose lottery-style numbers or create test data. Set the range and how many numbers you need.

Random numbers are needed for prize draws, raffles, choosing a student to answer, sampling records for an audit, picking lottery-style numbers and creating test data. Picking “randomly” by hand is not random at all, as people favour certain numbers. This generator gives fair results from your browser’s cryptographic random source.

Set a minimum and maximum, choose how many numbers you need, and decide whether repeats are allowed. With No repeats, each number appears at most once, which is what you want for draws. Optionally sort the results. The generator avoids modulo bias, a subtle flaw in simple methods that makes some numbers slightly more likely than others.

Because the numbers come from the same secure source browsers use for encryption keys, they are unpredictable even to someone who knows exactly how the tool works. That makes the generator suitable for draws where fairness matters, as long as the entry numbers are fixed before you generate.

How to use the Random Number Generator

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

Key features

  • Any minimum and maximum.
  • Many numbers at once.
  • No-repeat option for draws.
  • Optional sorting.
  • Unbiased cryptographic randomness.

Practical uses

  • Picking raffle or giveaway winners by ticket number.
  • Choosing random samples for quality checks.
  • Classroom selection.
  • Generating test data.
  • Assigning participants randomly to groups in a study or class activity.
  • Picking random page numbers for reading practice.

Example

For a giveaway with 250 entries, set 1 to 250, choose 3 numbers with No repeats, and you get three different winning entry numbers.

Tips and common mistakes

  • Share the settings and result screenshot for transparent public draws.
  • Number entries in a spreadsheet first so each number maps to one person.
  • Use Sort results to make the list easier to read.
  • For lotteries with numbers like 1–49, choose 6 numbers with No repeats and Sort results on.

Limitations

  • Very large requested counts may be slow.
  • With No repeats, you cannot request more numbers than the range contains.

Privacy

Numbers are generated on your device.

Frequently asked questions

Are the numbers truly random?

They come from your browser’s cryptographic random generator, which is suitable for fair draws.

Is every number equally likely?

Yes. The tool avoids modulo bias so no number is favoured.

Can I get numbers without repeats?

Yes. Tick “No repeats”.

Can I generate decimal numbers?

No. The generator produces whole numbers within your range.

Can I use negative numbers?

Yes. Set a negative minimum, for example −10 to 10.

What happens if minimum is larger than maximum?

The tool asks you to correct the range so the result is always meaningful.

Related tools

QR Code GeneratorCreate QR codes for links, text and Wi-Fi.
Password GeneratorStrong random passwords, generated on your device.
Color ConverterConvert HEX, RGB and HSL colors.
Barcode GeneratorCreate CODE128, EAN-13, UPC and more.