RandALL

Random number from 1 to 50

Fifty numbers. Draw one, or five that all differ.

Between 1 and 50

No number drawn yet.

Tap Draw, or press Space

Range

How many 1

Last draws

None yet. Your draws line up here, newest first.

What it does

Tap Draw for a whole number from 1 to 50, each with exactly a 2% chance. Set How many to 5 and turn on No repeats for five different numbers, one of 2,118,760 possible sets. Every number comes from your browser’s secure random generator, before the reels turn.

How to use it

  1. Tap Draw for one number from 1 to 50.
  2. For five different numbers, set How many to 5 and turn on No repeats and Sort.
  3. Tap Copy to keep them.
Put this number on your own site

Paste this where you want it to appear: a class page, a blog post, a stream overlay. It is free to use, with the link under it left in place.

What people use it for

Lottery-style picks

Five different numbers from 1 to 50, sorted. Any set is exactly as likely as any other. For other games, try the lottery number generator.

A US state

Number the 50 states in alphabetical order and draw one for a geography quiz, or a road trip you will plan one day.

Fifty entries

A giveaway with up to 50 entrants: number them in the order they entered and draw one per prize, No repeats on.

Odds from 1 to 50

From 1 to 50Odds
Any one number1 in 50 (2%)
An even number25 in 50 (50%)
The top ten percent (46 to 50)5 in 50 (10%)
Sets of five different numbers2,118,760
One given set of five1 in 2,118,760
A repeat within the first 9 draws53.5%

Five numbers from fifty, order ignored, can come out 2,118,760 ways: 50 × 49 × 48 × 47 × 46 orders, divided by the 120 orders the same five can arrive in. 1, 2, 3, 4, 5 is exactly as likely as any other set. It only looks less random.

How it picks

The way the RandALL app does it: the number first, the reels after.

  1. Your range is read. Whole numbers up to 15 digits, negative or positive. A range typed backwards is turned round, so 100 to 1 means 1 to 100. Both ends can come up.
  2. The number is drawn first. For a range of n numbers, a whole number from 0 to n minus 1 is drawn with crypto.getRandomValues and added to your minimum. Rejection sampling throws away the few raw 32-bit values that would give some numbers an extra share, so each one has exactly a 1 in n chance.
  3. Wide ranges get more bits. One 32-bit draw covers 4,294,967,296 numbers. For a wider range, two draws are joined into a number with just enough bits for it, and anything past the end is drawn again. No remainders, no rounding.
  4. No repeats is a fair set, then a shuffle. Floyd’s algorithm picks numbers that all differ, with every possible set equally likely, and a shuffle makes every order equally likely too.
  5. Then the reels turn. Each reel steps through the digits before its own, slowing as it goes, and they stop left to right, as in the app. They only show a number that is already decided.

Tested. In 100,000 test draws each from 1 to 10, 1 to 6 and minus 3 to 3, every number came up evenly (chi-square test). A range three times wider than 32 bits and the full 15-digit range split evenly into slices, odds and evens, and last digits. With No repeats no draw ever repeated, and all 20 ordered pairs from 1 to 5 and all 20 sets of three from 1 to 6 came up evenly.

How every RandALL tool picks

All 19 web tools

Questions

How do I draw 5 different numbers from 1 to 50?

Set How many to 5, turn on No repeats, and turn on Sort if you want them in order. Every set of five is equally likely. Tap Copy to keep them.

How many ways are there to pick 5 numbers from 50?

2,118,760, when the order does not matter. That is 50 × 49 × 48 × 47 × 46, divided by 120, the number of orders the same five numbers can come in.

Are some numbers luckier than others?

No. Every number from 1 to 50 has the same 2% chance on every draw, and the draw has no memory of what came before.

RandALL app icon

Take it with you

RandALL for iPhone has 25 tools in one app: wheels and teams, real 3D dice, random alarms, Finger Picker and more. It works offline.

Your first 24 hours are free, with every tool. After that, subscribe or buy the lifetime unlock once. Family Sharing included.

Get it on the App Store

iPhone only for now. These web tools are yours to keep using.

QR code that opens RandALL on the App Store
Scan with your iPhone
All tools

Lists

Spin the WheelYour list on a wheel Random Name PickerDraw a few names List RandomizerWho goes first? Bracket GeneratorLast one standing Team GeneratorSplit a list into groups

Games

Coin FlipHeads or tails? Dice RollerAny dice, any sides Random Number GeneratorPick a number, any range Random Card GeneratorDraw a card Lottery Number GeneratorPick X of Y Rock Paper ScissorsRock, paper or scissors Spin the BottleRandom direction Tarot Card ReadingOne card, or three

Generators

Random Country GeneratorSpin the globe Random Color GeneratorA color and its palette Random Date GeneratorRandom date and time Fortune CookieOpen a cookie Random TimerNobody knows when it ends Random Animal GeneratorRandom species
RandALL for iPhone25 tools in one app. Works offline.