Everyday

Random Number Generator

Generate random numbers, roll dice, or pick random items from a list. 100% client-side.

Result42

All randomization runs locally in your browser.

Two dice showing five and three below a display window repeating the roll, with a curved two-way arrow above

How to use

  1. Single: set Min and Max (from −999,999 to 999,999) and click Generate for one random whole number. Click Re-Roll for another.
  2. Multiple: set Min, Max and Qty (up to 100). Turn off Allow duplicates to get all different numbers, like lottery picks.
  3. Dice: choose the Dice Type (d4, d6, d8, d10, d12, d20 or d100) and the Count (up to 20), then Roll to see each die and the Total.
  4. List: enter items one per line, set how many to pick, and click Pick. Use Copy or Copy All to share the result.

Ways to use it

The four modes cover most everyday random choices:

You needModeSettings
A number from 1 to 10SingleMin 1, Max 10
Lottery-style numbersMultipleMin 1, Max 49, Qty 6, duplicates off
A giveaway winner by entry numberSingleMin 1, Max = number of entries
Tabletop game rollsDice2 × d6, or 1 × d20
Who goes first, or a random team orderListNames one per line, pick all, duplicates off
Random sample for a survey or testMultipleMin 1, Max = list size, Qty = sample size, duplicates off

How random is it?

Numbers come from crypto.getRandomValues(), the browser's cryptographic random number source, rather than Math.random(). Its output is designed to be unpredictable, which is what you want for draws and giveaways. Every number between Min and Max, including both ends, can come up.

With duplicates turned off, the tool shuffles the whole range and takes the first values, so no number repeats. If you ask for more unique numbers than the range holds, for example 10 different numbers between 1 and 5, it shows "Not enough unique values" instead of repeating.

Fair draws and dice

For a public giveaway, number the entries first, write down the rules, then generate the winner while recording your screen or in front of witnesses. That way anyone can check that the number matches an entry.

Rolling several dice does not give every total the same chance. With 2 × d6, a total of 7 comes up in 6 of the 36 combinations, while 2 and 12 come up in only one each. That is the normal behavior of real dice, and the tool rolls each die separately in the same way.

Frequently asked questions

Can the same number appear twice?

Only when Allow duplicates is on. Turn it off in Multiple or List mode to get all different results.

Are decimals or negative numbers supported?

Negative numbers yes, down to −999,999. Results are whole numbers only.

Is this good enough for passwords?

The randomness source is cryptographic, but a number is not a strong password. Use the Password Generator for passwords.

Is anything sent to a server?

No. Everything runs in your browser.

Found a problem or have an idea? Report a problem

Share

You might also like