Random Card Generator

Draw random playing cards either from a real deck that empties as you deal, or as independent picks that can repeat.

Loading tool…

The deck is shuffled and dealt entirely in this page. Nothing is uploaded and no record of what was drawn leaves your browser.

What the Random Card Generator does

This random card generator will draw random playing cards either from a real deck that empties as you deal, or as independent picks that can repeat. Everything runs inside this page, so the work happens on your own device rather than on a server. It is most often used for playing a card game without a physical deck to hand. The companion to this one is our online notepad.

How to use it

  1. Choose the mode: drawing from a deck removes each card, independent picks do not.
  2. Set how many cards to deal at once, and whether jokers are in.
  3. Press Draw. The cards appear face up and the list below records everything dealt.
  4. Shuffle a fresh deck to start over.

How it works

The two modes answer different questions, and picking the wrong one produces results that look fine and mean nothing. Drawing from a deck removes each card as it is dealt, so no card appears twice and the odds change as the deck empties — that is how a real game works, and it is what you need if you are simulating one. Independent picks take every card from a full 52, so repeats happen; that is right for a random prompt or a decision aid and wrong for modelling a hand.

The difference matters more than it sounds. The chance of two aces in a five-card hand is not the same as the chance of drawing an ace twice from a full deck, because in the real deck the first ace is gone. A generator that silently picks independently will quietly tell you the wrong odds.

Shuffling uses the Fisher-Yates algorithm, which walks the deck from the end and swaps each card with a uniformly chosen earlier one. The tempting alternative — sorting the deck by a random key — is not uniform and tends to leave cards nearer their starting positions than chance would. Fisher-Yates is both simpler and correct.

Each random choice uses the browser's cryptographic generator with rejection sampling, so every card is equally likely. That is more rigour than a card trick needs and exactly the right amount for anything where the fairness is the point.

When to use it

  • Playing a card game without a physical deck to hand.
  • Drawing a card as a random prompt for a workout, a writing exercise or a game.
  • Demonstrating how probability changes when cards are drawn without replacement.

Common mistakes to avoid

  • Using independent picks to model a real hand, which gives the wrong odds.
  • Expecting a card already dealt not to reappear in independent mode — it can and will.
  • Forgetting that jokers change the deck size from 52 to 54, which shifts every probability.

Frequently asked questions

What is the difference between the two modes?

Drawing from a deck removes each card, so nothing repeats and the odds change as you deal. Independent picks come from a full deck every time, so the same card can appear twice.

Which mode should I use for a card game?

Draw from a deck. That is how a real deck behaves.

Is the shuffle actually random?

It uses Fisher-Yates with the browser's cryptographic random source and rejection sampling, so every ordering is equally likely.

Related tools

See all everyday tools →