Random Number Generator

Choose a range and how many numbers you need, then press Generate. Numbers come from your browser's cryptographically secure random generator, and every value in the range is equally likely.

Runs in your browser — nothing is uploaded

Useful for:KidsTeachers

How to use it

  1. Enter the smallest and largest number you want. Negative numbers are fine, and the order doesn't matter.
  2. Set how many numbers to draw, up to 10,000 at a time.
  3. Tick “No repeats” if each number may appear only once, as in a raffle or a lottery-style pick.
  4. Choose a sort order if you like, press Generate (or Enter), and copy the result.

Common uses

  • Drawing a winner for a giveaway, raffle or classroom prize.
  • Picking lottery-style numbers or rolling virtual dice for a board game.
  • Choosing random samples, IDs or test data for a spreadsheet or a program.
  • Shuffling the order of presentations, questions or team members.
  • Making a fair decision when nobody wants to choose.

Examples

SettingsWhat you get
1 to 10, 1 numberOne number such as 7A quick pick, like choosing who goes first.
1 to 49, 6 numbers, no repeats, ascendingSix different numbers, for example 3, 11, 19, 27, 38, 45The format of many lottery tickets.
1 to 6, 10 numbers, repeats allowedTen dice rolls, for example 4, 1, 6, 6, 2, 3, 5, 1, 4, 2
1 to 30, 30 numbers, no repeatsEvery number from 1 to 30 in a random orderHandy for shuffling a numbered class list.
−100 to 100, 5 numbersFive values that may be negative, for example −42, 17, 0, 93, −8

Frequently asked questions

Are the numbers really random?

They come from crypto.getRandomValues, the cryptographically secure generator built into your browser, and rejection sampling removes the small bias a simple modulo would add. The results cannot be predicted in practice.

How do I generate numbers without duplicates?

Tick “No repeats”. The amount of numbers then can't be larger than the range: you can draw at most 49 different numbers from 1 to 49.

Can I use it for a giveaway or raffle?

Yes for informal draws: number the entries and generate one number in that range. Officially regulated lotteries usually require certified drawing methods, so check the rules that apply to you.

Can it generate decimal numbers?

It produces whole numbers. For decimals, generate in a larger range and divide: for example 0 to 1000 divided by 100 gives values from 0.00 to 10.00.

What is the largest range supported?

Any range between −1,000,000,000,000,000 and 1,000,000,000,000,000, with up to 10,000 numbers per draw.