Toolzi LogoToolzi

Random Number Generator

Set a range and count to instantly generate random numbers. Use it for dice rolls, lottery picks, raffles, and more.

Quick Settings

?

What Is a Random Number Generator?

This tool generates random numbers instantly within your chosen range. Set min, max, and count freely. Enable no-duplicates mode to ensure each number appears only once — ideal for fair draws and raffles.

Watch numbers spin in a slot-machine animation, then sort them ascending or descending and copy with one click. The last 10 draws and your 5 most recent settings are saved across page refreshes — click any history entry to instantly restore its settings.

Use Cases

Dice Roll

Pick 1 from 1–6. Great for board games or deciding turn order.

Classroom Draw

Set 1–[students] to fairly pick a student number or group assignment.

Team Split

Use no-duplicates to assign 1–N numbers evenly across players.

Lottery Reference

Pick digits in a 0–9 range for reference number generation.

Powerball Pick

Pick 5 from 1–69 without duplicates using the '1~69 · 5' preset — Powerball-style.

Game Order

Draw one number per player to decide turn order fairly.

What Is No-Duplicates Mode?

When enabled, the Fisher-Yates shuffle ensures each number appears exactly once — like a real lottery draw where a picked number cannot appear again.

When disabled, the same number can appear multiple times — like rolling a die independently each time, where past results don't affect future rolls.

Frequently Asked Questions

Is it truly random?
Yes. We use Math.random() backed by the browser's cryptographic random number generator. With no-duplicates enabled, Fisher-Yates shuffle is applied for fairness.
Can I use it for lottery number generation?
Yes. Use the Quick Settings presets for common ranges, or set your own min, max, and count to match your local lottery. Enable no-duplicates for a fair draw.
Can I pick lottery-style numbers?
Yes. Select the '1~69 · 5' preset for a Powerball-style draw (5 numbers from 1–69 without duplicates), or adjust the range to match your local lottery.
Can I use it as a dice?
Yes. Click the '1~6' preset to pick 1 number from 1–6, just like rolling a die. Useful for board games or deciding order.
What does no-duplicates mean?
With no-duplicates on, the same number cannot appear twice. Use this for draws or raffles where each number should only appear once. Note: the count cannot exceed the total numbers in the range.
Can I set a negative range?
Yes. Enter a negative number as the minimum value. For example, you can pick a random number between -10 and 10.
Can I save or share results?
The copy button in the result area copies numbers in their current sort order. Each history entry also has its own copy icon. The last 10 draws are saved across refreshes, and clicking any entry instantly restores its settings.
Can I sort the results?
Yes. Use the ↑ (ascending) and ↓ (descending) icons in the top-right of the result area to sort instantly. Tap the same icon again to return to the original order. Your sort preference is saved for future visits.

This tool is provided for entertainment purposes. Results are completely random and do not guarantee any prizes.

Related Tools