Random Number Generator | TextCraftKit

Random Number Generator

Generate random numbers in seconds. Pick a range and a count, allow repeats or not, sort the results, and see the total and average.

Your numbers will appear here.

Share this tool

Random Number Generator Guide

A fair random number is harder to pick by hand than it looks. People favour certain numbers, avoid others, and repeat patterns without noticing. This generator picks numbers with no bias, so a draw, a sample, or a test stays honest. You set the range and the count, and the numbers appear at once, with the total and average shown below.

Teachers use it to pick a student at random, by giving each student a number and drawing one. Event organisers use it for raffles and prize draws, where fairness matters and everyone can see the result. Researchers use it to pick a random sample from a list. Developers use it to test code with random inputs. Game players use it for dice style rolls with any range they like, not just 1 to 6. One small tool covers all of these without a spreadsheet or a deck of cards.

How to use the generator step by step

First, type the minimum and maximum numbers. A range of 1 to 100 is a good default for a draw, and 1 to 6 works like a die. Next, set how many numbers you want, from 1 to 100. Tick No repeats if each number should appear only once, which is what you want for a raffle. Untick it if repeats are fine, such as rolling a die many times. Tick Sort results if you want the numbers in order, which helps when you check them against a list. Press Generate Numbers, and the numbers show as small cards below, with the count, total, average, smallest, and largest underneath. Copy Numbers copies them as a comma list you can paste anywhere.

Input vs output examples

Example one. You set the range to 1 to 100, count to 5, No repeats on, and Sort off. You get 5 different numbers, such as 7, 23, 41, 68, and 92, and the stats line shows the total and average.

Example two. You set the range to 1 to 6, count to 10, No repeats off, and Sort on. You get 10 dice style rolls in order, with repeats allowed, and the average tells you how the rolls went.

Example three. You set the range to 1 to 50, count to 3, No repeats on, and Sort on. You get 3 sorted numbers for a small prize draw, and the smallest and largest are easy to read out.

Privacy

All processing happens locally in your browser. Your range and your numbers are never stored on a server, never sent anywhere, and never shared with anyone. Close the page and everything is gone.

Frequently asked questions

Are the numbers truly random?

They are random enough for draws, games, samples, and tests. The generator uses your browser built in random number source. It is not made for lotteries or security work, where certified randomness is needed.

What happens if I ask for more numbers than the range has?

With No repeats on, the tool stops you and explains the problem. Either lower the count or untick No repeats so numbers can repeat.

Can I generate negative numbers?

Yes. Type a negative minimum, such as minus 10, and a positive maximum, such as 10, and the generator picks from the full range.

Why does the stats line matter?

It gives you a quick check on the set. The total and average help when you use the numbers for a sample or a test, and the smallest and largest help you read a draw out loud.

Does this work on my phone?

Yes. The page is mobile friendly, the boxes stack cleanly, and the number cards wrap to fit a small screen.