Random Number Generator

Generate random integers within a range, with or without duplicates.

Preview widget ↗
Table of Contents▼

What is the Random Number Generator?

A random number generator returns integers in a chosen range. Useful for draws, sampling, and games.

About the Random Number Generator

Enter min, max, and how many numbers; choose unique or with repeats.

Formula

n = floor(random() × (max − min + 1)) + min

How to Use

  1. Enter min and max.
  2. Enter count.
  3. Pick unique or with duplicates.
  4. Click Calculate.

Key Components

  • Range
    Inclusive min/max.
  • Count
    How many numbers to generate.
  • Unique
    Avoid duplicates if Yes.

Why Use This Calculator

  • ✓Run raffles.
  • ✓Pick winners.
  • ✓Sample data.
  • ✓Free and instant.
  • ✓Mobile-friendly.

Examples

1–6 (dice)
Generate 1 number.
1–49, 6 unique
Lottery-style draw.
0–100
General sampling.
Negative range
−10 to 10 supported.
Lots of repeats
Set Unique=No for sequence.

Frequently Asked Questions

Is it cryptographically random?+
Uses Math.random() — fine for non-security uses.
Largest range?+
Up to JavaScript's safe integer range.
Decimals?+
Integers only — wrap your range as needed.
Save results?+
Copy from the result list.
Free?+
Yes.
How helpful was this calculator?
Average rating: 4.7 / 5 (122 votes)

CalculatorCalc.com's sole focus is to provide fast, lightweight, comprehensive, convenient, 100% free online calculators in multiple categories that helps you with your day to day calculations with ease. Currently, we have around 100+ calculators to help you "do the math" quickly in areas such as finance, conversions, fitness, health, math, date & time, and others, and we are still developing more calculators which would be keep on adding over a period of time.

Our goal is to become the one-stop solution, go-to site for users who are our part of family who need to make quick calculations. Additionally, we believe the internet should be a source of free information and that's why we built this website and products what we offer absolutely for free. Therefore, all of our tools and services are completely 100% free all time, any time, with no registration required.

Our team comes from the background of software engineers and software developers, we specifically hard coded and developed each of the calculators individually in detail and put each one through strict, comprehensive testing. These calculators and tools are developed with precise fields that are exactly needed for calculations with right set of rules and right set of formulas making them unique in the internet.

But this doesn't mean that we are perfect and everything is up to the mark as sometimes there could be bugs when you develop any software. So, we are always open for feedback, anytime. Please inform us if you notice even the slightest error – your input is extremely valuable to us. You can reach out to us at contact@calculatorcalc.com While most calculators on CalculatorCalc.com are designed to be universally applicable for worldwide usage, some are for specific countries only. For example, the Income Tax Calculator is for United States residents only, and some could be for other regions.