No results yet.

Mode
Number
Quick ranges

More about the Random generator

Random generator

Five small tools for everyday chance in one place. Draw a random number between 1 and 10, 1 and 100 or any two numbers, roll up to 20 dice with 4 to 100 sides, draw cards from a real deck of 52 that remembers what is gone, flip a handful of coins, or draw lots: names from a hat, or everyone draws someone else, as for Secret Santa. Every result comes from the secure random generator of your browser. Choose Number, Dice, Cards or Coin, set how many you want and press the big button, or press the space bar. The last 50 results are kept in the history, in this browser only.

How it works

  1. Pick a tool: Number, Dice, Cards, Coin or Lots.
  2. Set it up: a quick range such as 1-10 or 1-100 or your own From and To, the number of dice and their sides, how many cards or coins, or the names for the lots, one per line.
  3. Press Draw, Roll or Flip, or the space bar. The result, the total and the history appear at once; copy them or save the history as a PDF or JSON.

Numbers, dice, cards and coins

Draw up to 100 numbers at once, with or without repeats and sorted if you like: handy for a raffle, a lottery pick or choosing who goes first. Roll classic six-sided dice with pips, or the d4, d8, d10, d12, d20 and d100 of board and role-playing games, with the total added up. Draw cards from a deck of 52, with two jokers if you want, and flip up to 20 coins with the count of heads and tails.

Fair by design

Every draw uses crypto.getRandomValues, the generator browsers use for encryption keys, and throws away the values that would favour some results, so 1 to 100 really gives every number a chance of exactly 1 in 100. The deck works like a real one: cards you draw stay out until you shuffle, unless you choose to put them back.

Draw lots and Secret Santa

Type the names, one per line. Draw names takes one or more names from a hat; drawn names stay out until you reset, so you can draw a raffle or an order one by one. Everyone draws gives every person someone else's name, never their own, for Secret Santa or a gift exchange. Hide who drew whom keeps each name behind a button, so you can pass the screen around and everyone sees only their own.

Frequently asked questions

How do I pick lottery numbers, such as 6 from 49?

Choose Number, type 1 in From and 49 in To, move How many to 6 and tick No repeats and Sort, then press Draw. You get six different numbers in order, and every set of six is equally likely.

How do I get a random number between 1 and 10 or 1 and 100?

Choose Number, press the quick range 1-10 or 1-100 and press Draw. For another range, type your own From and To; both numbers are included. Use 0-9 or 0-99 for a number below 10 or below 100.

Can the same card come up twice?

Not until you shuffle: drawn cards leave the deck, and the counter shows how many are left. Turn on Put cards back to draw every time from a full deck.

How does Everyone draws make sure nobody draws themselves?

It shuffles all the names fairly and starts again whenever someone would get their own name, until nobody does. Every way of sharing out the names in which no one has their own is equally likely, so the draw cannot be steered.

How do I roll a d20 online?

Choose Dice, set Sides to d20, move How many to 1 and press Roll, or the space bar. Roll up to 20 dice at once and the total is added up for you. Every face has exactly the same 1 in 20 chance.

Ready to try it?

Open PictorX in your browser — no install, no credit card required to start.

前往編輯器