ToolsleFree tools · toolsle.com

Click Generate for a random number.

Advertisement

Random Number Generator

Random Number Generator — Single Numbers, Lists, Dice and Coins

Our free random number generator lets you generate a single random number in any range, create a list of multiple random numbers with or without duplicates, roll any standard tabletop dice, or flip a virtual coin. All results are generated instantly with a single click — no signup, no ads, no limits.

How to Generate Random Numbers

Single Random Number

Set your minimum and maximum values and click Generate. The result is a random whole number anywhere within your specified range, inclusive of both endpoints. The default range of 1 to 100 is the most commonly used for general purposes like picking a number for a game or making a decision.

Multiple Random Numbers

Enter your range, set how many numbers you need, and choose whether duplicates are allowed. The generator produces the full list instantly. Use this for lottery number picks, assigning random values to a list, creating test data, or any situation requiring a batch of random numbers.

Dice Roller

Select your dice type and how many dice to roll, then click Roll. The result shows each individual die value and the combined total. Standard tabletop dice types are all supported: d4, d6, d8, d10, d12, d20, and d100 (also called d%).

Coin Flip

Click Flip Coin for a 50/50 heads or tails result. The session tracker shows your running totals so you can track streaks or run probability experiments over multiple flips.

Common Uses for a Random Number Generator

Use CaseModeSettings
Pick a lottery numberMultiple NumbersRange 1–49, pick 6, no duplicates
Decide between optionsSingle NumberRange 1–(number of options)
Roll for initiative (D&D)Dice Roller1d20
Roll damage (D&D)Dice RollerVaries by weapon (e.g. 2d6)
Random team assignmentsMultiple NumbersRange 1–(team size), no duplicates
Pick a random winnerSingle NumberRange 1–(number of entrants)
Coin toss decisionCoin FlipHeads or tails
Generate test dataMultiple NumbersAny range, duplicates allowed
Password number componentMultiple NumbersRange 0–9, pick 4–6 digits
Classroom random selectionSingle NumberRange 1–(class size)

Standard Dice in Tabletop Games

Tabletop role-playing games like Dungeons and Dragons use a set of polyhedral dice referred to collectively as a dice set. Here is what each die is used for:

DieSidesCommon Use in D&D
d44Damage for small weapons (dagger, magic missile)
d66Damage for medium weapons, hit dice for rogues
d88Damage for versatile weapons, hit dice for clerics
d1010Damage for heavy weapons, percentile with d%
d1212Damage for greataxe, hit dice for barbarians
d2020Attack rolls, saving throws, ability checks
d100100Percentile rolls, wild magic tables
Advertisement

How Random Number Generation Works

Computers cannot generate truly random numbers on their own because they are deterministic machines — given the same input, they always produce the same output. Instead, they use pseudo-random number generators (PRNGs), which are algorithms that produce sequences of numbers that appear random and pass statistical tests for randomness.

JavaScript's Math.random() function is a PRNG that produces a floating point number between 0 (inclusive) and 1 (exclusive). To generate a random integer between a minimum and maximum value, the formula is: Math.floor(Math.random() * (max - min + 1)) + min. This produces results that are statistically uniform across the range and suitable for all practical purposes including games, simulations, and random selections.

True Random vs Pseudo Random

FeaturePseudo-Random (Math.random)True Random
SourceAlgorithm + seedPhysical processes (atmospheric noise, etc.)
SpeedExtremely fastSlower (requires hardware input)
Reproducible?Yes, with same seedNo
Suitable for games?YesYes
Suitable for cryptography?NoYes
Example toolsThis generator, Excel RAND()Random.org

Frequently Asked Questions

How do I pick a random number between 1 and 100?

Use Single Number mode with the default settings (Min: 1, Max: 100) and click Generate. The result is a uniformly random integer from 1 to 100 inclusive.

How do I randomly pick from a list?

Number each item in your list starting from 1, set the range from 1 to the total number of items, and generate a single random number. The item corresponding to that number is your random selection.

Can I use this for a raffle or giveaway?

Yes. Assign each entrant a number, set the range from 1 to the total number of entrants, and generate a single random number to pick the winner. For transparency, you can screenshot the result or generate in front of witnesses.

What is the probability of rolling a 20 on a d20?

The probability of rolling any specific number on a fair 20-sided die is 1 in 20, or 5%. A natural 20 (critical hit in D&D) has exactly this 5% probability on any given roll.

How many random numbers can I generate at once?

This generator supports up to 100 numbers per batch in Multiple Numbers mode. For larger datasets, consider running multiple batches or using a spreadsheet tool with a RAND() function.

Advertisement