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 copy results with one click. The last 10 draws are saved in history for easy reference.

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.

Lotto Pick

Pick 6 from 1–45 without duplicates for a lottery-style draw.

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 to pick numbers in common lottery ranges. For a 0–9 digit pick, select the '0~9' preset and increase the count as needed.
Can I pick lotto-style numbers?
Yes. Select the '1~45 · 6' preset to pick 6 numbers from 1–45 without duplicates — just like a lotto draw.
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?
Click the Copy button to copy results to your clipboard. The last 10 draws are available in the history panel.

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

Related Tools