Skip to content

Random Number Generator

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

Generated locally in your browser.

How do you generate a random number in a range?

Numbers are drawn uniformly between your minimum and maximum (inclusive for whole numbers) using the browser's random generator, and "No duplicates" draws without replacement. For unique results the count cannot exceed the range size, and decimal mode returns fractional values. Five unique whole numbers between 1 and 100 might be 7, 23, 44, 78 and 95.

Understanding your result

For unique results the count cannot exceed the size of the range. Decimal mode returns fractional values.

Formula and method

Numbers are drawn uniformly between the minimum and maximum (inclusive for whole numbers) using the browser’s random generator. “No duplicates” draws without replacement.

Assumptions and limitations

Numbers come from your browser's built-in random generator, which is ideal for games, sampling and everyday decisions but not intended for regulated gambling, official lotteries or cryptographic keys, which require audited systems. In no-duplicate mode the count cannot exceed the range size, and results are not stored once you close the page.

Worked example

Five unique whole numbers between 1 and 100 might be 7, 23, 44, 78 and 95.

How to use this tool

  1. Set the minimum and maximum.
  2. Choose how many numbers and any options.
  3. Press Generate.

Common mistakes to avoid

  • Requesting more unique numbers than the range allows.

About the Random Number Generator

Generate random numbers for draws, games, sampling and decisions — one at a time or many at once.

Who should use this tool

For anyone needing quick random numbers: teachers setting up classroom activities, developers generating sample data, people running small draws or games, and anyone making a fair, unbiased choice. Whether you want one number or a whole batch, with or without repeats, this covers everyday and casual needs.

Benefits

  • Generates one number or many at once instantly
  • Offers unique-only mode drawing without replacement
  • Supports whole numbers or decimals across any range
  • Runs in your browser with nothing sent away

Practical use cases

  • Assigning random order to a list of participants
  • Generating sample values for testing or demos
  • Picking numbers for a casual game
  • Selecting a random item by its index

Explore all Random Generators tools

Frequently asked questions

Is it suitable for raffles?

Yes, for casual draws. For regulated or high-stakes lotteries use an audited system.

What does the no-duplicates option actually do?

It draws numbers without replacement, so each value appears at most once in a single batch, like pulling numbered balls out of a bag. Because of that, the quantity you request cannot be larger than the size of your chosen range, since there are only so many distinct numbers to give.

Can I generate decimal numbers rather than whole ones?

Yes. Decimal mode returns fractional values drawn uniformly between your minimum and maximum, which is handy for simulations, weighting or test data. Whole-number mode instead returns integers inclusive of both endpoints. You choose whichever fits, and the range you set applies either way.

Share this tool

Free to use — copy the link, share it anywhere, or add the tool to your own website.

Embed this tool on your site (free)

Copy this code and paste it into any web page — it stays free and always up to date: