Skip to main content
True Calculator

Random Number Generator

Generate random integers and decimals within a range. Create sequences of random numbers for any purpose.

Results update live. The decimal stays within min–max after rounding to 3 decimal places.

Random decimal

58.068

Random integer

4

Random sequence (10 numbers)

837947817112667197

Last updated: February 2026

How this calculator is verified

Checked by True Calculator automated test suite on

  • Formula verified against a published worked example in the automated test suite
  • Edge cases (zero, negative, boundary and unit-mismatch inputs) covered by unit tests

The full verification method is on our how we verify page. Found an error? Tell us and we will re-check it.

When to Use This Calculator

A random number generator has more uses than you might expect: splitting bills fairly, picking a name from a group for a gift exchange, drawing a sample for a school project, or choosing a lucky number for a raffle. This tool generates numbers in any range you set, and lets you exclude repeats when you need several distinct values — useful for seat assignments or draw order. Students running simulations for statistics homework use it to create datasets quickly. The generator runs in your browser with no data sent anywhere, so it is safe for sensitive uses like deciding who pays for dinner. Set the minimum, maximum and count, and copy the results straight into your spreadsheet. Teachers also use it to assign random question numbers for oral tests so every student gets a different set.

How to Use This Calculator

  1. Step 1: Enter the lower bound of the range, such as 1.
  2. Step 2: Enter the upper bound, such as 100, and choose integers or decimals.
  3. Step 3: Set how many numbers you need in the sequence.
  4. Step 4: Read the generated list, and regenerate if you want a fresh set.

Worked Example

A quiz organiser in Bhopal wants to pick 10 questions from a bank numbered 1 to 100. Setting the range 1 to 100, integer mode and a count of 10, the calculator returns ten numbers such as 7, 42, 63, 18, 91, 55, 30, 74, 12 and 86, all inside the range. Every run gives a different sequence, so regenerating produces a fresh set for a second quiz. For decimal needs, such as simulated measurements, choose the decimal mode and the tool returns values with fractional parts within the same bounds.

Tips and Common Mistakes

  • •Tip 1: Decide the count and the range before generating, so the set matches the problem such as choosing 5 teams from 40.
  • •Tip 2: Use integer mode for draws, indices and question numbers, and decimal mode for continuous values like times or measurements.
  • •Tip 3: Separate draws can repeat a number, so regenerate the whole list if you need a set of distinct values.
  • ✗Mistake 1: Setting the lower bound above the upper bound, which leaves the tool no valid range to draw from.
  • ✗Mistake 2: Expecting the same sequence twice; a random generator gives a fresh result on every run.

Frequently Asked Questions

Can I use this for Ludo, Snakes and Ladders or lucky draws?

Yes. Set the range from 1 to 6 for a die roll, or use a wider range for draws and picks. Every run produces a fresh sequence, so you can fairly select questions, teams or winner numbers.

Can the same number appear twice in one sequence?

Yes, it can. Each draw is independent, so duplicates are possible and the generator does not guarantee unique values. If you need a set of distinct numbers, regenerate until you get a sequence without repeats.

Can I get numbers outside my chosen range?

No. Every result stays between your lower and upper bound, inclusive. With a range of 1 to 100, all outputs are whole numbers from 1 to 100.

Is this generator truly random?

It uses the JavaScript Math.random pseudo-random algorithm, which is fast and perfectly fine for games, sampling and practice questions, but it is not cryptographically secure. For lotteries or security-sensitive uses, rely on a certified source of randomness instead.

Why would a teacher or student use this?

Teachers use it to pick students at random, generate fresh practice questions with different numbers for every student, and simulate dice and probability experiments in class — all in seconds.

You might also need

Related calculators from other categories