Random Number Generator: 1 to 100, No Repeats, Raffles

Random Number Generator: 1 to 100, No Repeats, Raffles

Pick one or up to 1,000 random numbers in any range, like 1 to 100, with or without repeats and sorted. Secure Web Crypto draws, free in your browser.

Updated November 2026

Reviewed by Rafael Duarte

CONFIGURATION
GENERATED OUTPUT
Click GENERATE to get started
Shift + Enter to Copy · Space Space to Generate
Uses cryptographically secure generation (Web Crypto API).

How to generate a random number

Set your range, pick a quantity, generate instantly

1. Set the range

The range starts at 1 to 100. Change MIN VALUE and MAX VALUE to any whole numbers, negatives included, as long as Min is lower than Max.

2. Choose how many

Set QUANTITY from 1 to 1,000. Turn off Allow duplicates for unique numbers, and turn on Sort results to list them in ascending order instead of draw order.

3. Generate and copy

Click GENERATE, then Copy to get one number per line. With the cursor outside the number fields, Space generates again and Shift+Enter copies.

What this random number generator does

Built for quick draws, with nothing hidden

Session history

Keeps the last 20 generations of the session so you can review recent results.

Bit depth and latency

After each generation, shows how many random bits were used (32 or 53) and how long the draw took.

Rejection sampling

Draws come from the browser's Web Crypto API, and out-of-range values are thrown away and redrawn, so no number gets the extra weight that naive modulo scaling gives.

Negative and very large ranges

Min and Max can be any whole numbers between −9,007,199,254,740,991 and 9,007,199,254,740,991 (JavaScript's safe integer limit), with up to 2^53 possible values. Ranges above 2^32 values use 53-bit draws.

Example configurations

Scenario
Setup
One number from 1 to 100
Default settings, click GENERATE
Number between 1 and 10
Min 1, Max 10, Quantity 1
3 raffle winners out of 250 tickets
Min 1, Max 250, Quantity 3, Allow duplicates off
Temperature-style range with negatives
Min -20, Max 20, Quantity 5, Sort results on
Min equal to Max
Error: Min must be less than max

When you'll reach for this tool

The most common scenarios among people who use it

Giveaways and raffles

Number your entrants, set Quantity to the number of prizes, turn off Allow duplicates and draw every winner in one click.

Games and tie-breakers

Settle a tie, pick who goes first or choose a page or question at random. For dice with animation and totals, use the dice roller.

Quick picks for any numbered game

Any "pick N from a range" draw works here. For Powerball, Mega Millions and other games with a bonus ball, the lottery number generator already knows the rules.

Development and testing

Generate test IDs or seed database fixtures with varied values.

Common mistake? Start here

Asking for more unique numbers than the range allows

With Allow duplicates off, Quantity can't be larger than the number of values in the range (Max − Min + 1). Asking for 20 unique numbers from 1 to 10 shows an error instead of a result.

Typing a quantity above 1,000

The tool doesn't warn you: anything above 1,000 is quietly cut to 1,000 numbers. For bigger batches with CSV or JSON export, use the random number list generator, which goes up to 10,000.

Pressing Space inside a field

The Space and Shift+Enter shortcuts are ignored while you're typing in MIN VALUE, MAX VALUE or QUANTITY. Click outside the fields first, or just use the GENERATE and Copy buttons.

Entering decimals

This generator works with whole numbers only. A decimal Min or Max is truncated toward zero, so 1.9 becomes 1.

Why use this random number generator

A history of the last 20 generations, plus bit-depth and latency stats after every draw, lets you look back at what came up each time, which helps when someone asks to see the raffle again.

Numbers come from crypto.getRandomValues() with rejection sampling, so every value in your range has the same chance of appearing. Picking names instead of numbers? The random name picker handles lists of people.

Math.random() vs. crypto.getRandomValues()

Why the source of randomness matters

Math.random()
crypto.getRandomValues()
Cryptographically secure
no
yes
Outcomes predictable in principle
yes
no
Modulo bias
depends on how it's scaled
removed here with rejection sampling
Used by
generators built on Math.random()
this tool

Frequently asked questions

Just click GENERATE. The tool opens with Min 1, Max 100 and Quantity 1, so the first click gives you one number from 1 to 100, each with a 1% chance.

References

Related Tools