The four numbers are 7, 23, 48, 91. If you need a different set, use the methods below to generate your own truly random or pseudo-random sequence.
What “Random” Actually Means
Randomness is the lack of pattern or predictability in events. A random sequence of numbers has no discernible order, and each number is independent of the ones before it. In practice, there are two types: true randomness (from physical processes like radioactive decay or atmospheric noise) and pseudo-randomness (generated by algorithms that appear random but are actually deterministic). Most everyday uses—like picking lottery numbers or shuffling a playlist—rely on pseudo-random generators because they are fast and sufficiently unpredictable for non-security purposes.
How Random Number Generators Work
Computer random number generators (RNGs) use algorithms that start with a “seed” value—often taken from the current time, mouse movements, or other sources of entropy. The algorithm then applies mathematical operations to produce a long sequence of numbers that look random. For example, the common rand() function in many programming languages uses a linear congruential generator: next = (a * current + c) mod m. The quality of randomness depends on the choice of parameters and the seed. For cryptographic purposes, secure RNGs use hardware entropy sources and more complex algorithms to prevent prediction.
Ways to Generate 4 Random Numbers
- Online generators: Websites like random.org use atmospheric noise to produce true random numbers. You can specify a range (e.g., 1–100) and how many numbers (4).
- Spreadsheet functions: In Excel,
=RANDARRAY(4,1,1,100,TRUE)gives 4 random integers between 1 and 100. In Google Sheets, use=RANDBETWEEN(1,100)in four cells. - Programming: In Python,
import random; [random.randint(1,100) for _ in range(4)]. - Physical methods: Roll a 10-sided die four times, or draw numbered balls from a bag.
How to Choose Numbers for a Specific Purpose
If you need numbers for a lottery, a password, or a statistical sample, the method matters. For a lottery, use a generator that ensures no repeats if the game disallows them. For passwords, use a cryptographic RNG and avoid patterns like 1234 or 0000. For sampling, ensure each number has an equal chance of selection—use simple random sampling without replacement if you need distinct items. Always define the range and whether repetition is allowed before generating.
Common Problems and Misconceptions
A frequent misconception is that “random” means “no repeats” or “all different.” That is not true; random sequences can have repeats. Another issue is that humans are terrible at generating random numbers—when asked to pick numbers, people tend to avoid patterns and choose numbers that “feel” random, which actually makes them less random. For example, people rarely pick 1, 2, 3, 4, even though it is just as likely as any other sequence. Also, pseudo-random generators can produce predictable sequences if the seed is known, which is why they are unsuitable for security without proper seeding.
Costs and Safety of Random Number Tools
Most online random number generators are free, but some may require an account or offer premium features. For security-critical uses (like generating encryption keys), never rely on a free website; use your operating system’s built-in cryptographic RNG or a dedicated hardware device. Be cautious about entering sensitive data into random number sites—they could log your numbers. For passwords, use a password manager that generates strong random passwords locally. Always ensure your source is reputable and, if possible, offline.
Alternatives to Random Number Generators
If you don’t want to use an RNG, you can use deterministic methods that still appear random, such as taking the last four digits of the current Unix timestamp, or using a formula like (seed * 73 + 17) mod 100 and iterating. However, these are not truly random and can be predicted. For creative purposes, you might use a book, a deck of cards, or even the digits of pi (e.g., the 10th to 13th digits). These are pseudo-random at best. For scientific or statistical work, always use a validated random source.
Frequently Asked Questions
Can I use the same four numbers twice?
Yes, if you are using a random generator with replacement, the same number can appear more than once. If you need distinct numbers, specify “without replacement” or use a method that removes chosen numbers from the pool.
What is the difference between random and pseudo-random?
True random numbers come from physical processes and are unpredictable. Pseudo-random numbers are generated by algorithms and are deterministic—they only appear random. For most everyday uses, pseudo-random is fine, but for security, true randomness is essential.
How do I generate random numbers in Excel without duplicates?
Use =SORTBY(SEQUENCE(100),RANDARRAY(100)) to create a shuffled list of 1–100, then take the first four. This works in Excel 365 and 2021. Alternatively, use a helper column with =RAND() and sort by it.
Are online random number generators safe for passwords?
No, unless the site explicitly uses a cryptographic RNG and does not store your numbers. For passwords, use a password manager that generates random strings locally, or use your operating system’s built-in random source (e.g., /dev/urandom on Linux).
Why do people think 7 is the most common random number?
It’s a psychological bias—when humans are asked to pick a number between 1 and 10, they often choose 7 because it feels “lucky” and is not at the extremes. This is a well-known effect, but it has no bearing on actual randomness.
Related
- P&L vs Balance Sheet: Key Differences Explained
- Google Sheets Sum Whole Column: Quick Formula
- Computer Data Encryption: How It Works
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Inventory Spreadsheet: Simple Setup and Useful TipsYes—an inventory spreadsheet can be simple: list each item once, record its quantity and reorder point, and update…
- Excel Power Query: Keep Column Headers When RefreshingYes—Excel Power Query keeps headers on refresh when they are defined as the query’s column names, usually by…
- How to Insert a Checkbox in Word for Forms and ListsTo insert a clickable checkbox in a Word document, turn on the Developer tab, then choose Developer >…
- How to Schedule an Email in Outlook with Viva InsightsTo schedule an email in Outlook with Viva Insights, compose your message, add the recipient, and use the…
- Excel Flash Fill Grayed Out? Common Causes and FixesIn Excel for Microsoft 365 on Windows, start by selecting the first empty cell in the column where…
- Balance GraphQL API: Availability and AlternativesIf you mean Balance, the B2B payments platform, its publicly described developer interface is REST-oriented; there is no…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.