Random Number Generator 1-100: Free, Instant and Cryptographically Secure
Summary: A random number generator 1-100 picks any whole number from 1 to 100, each with exactly a 1-in-100 probability per draw. The most reliable tools use crypto.getRandomValues, the cryptographic random function built into modern browsers, rather than the predictable software algorithms found in most spreadsheets and basic generators. Hasardio draws a certified number in milliseconds, with a SHA-256 fingerprint you can share as proof — no account needed, no install.
Picking a number between 1 and 100 seems almost too simple to think about. But the moment a prize, a fair assignment, or a public draw is on the line, the method behind the number becomes everything. A number chosen by a predictable algorithm can — in theory — be reverse-engineered. A number drawn from hardware entropy cannot. This guide explains both worlds clearly so you can choose the right tool for what you are actually doing.
What is a random number generator 1-100?
A random number generator for the range 1-100 is a tool that returns one integer, chosen uniformly at random from the set {1, 2, 3, … 100}. "Uniformly" means every number has the same likelihood of appearing — exactly 1 %. The generator has no favourites, no memory, and no pattern. Each draw is fully independent of every previous one.
This sounds straightforward, but two separate technologies both carry the label "random" — and they behave very differently under scrutiny. The range 1-100 is one of the most frequently requested precisely because it maps naturally onto percentages, seat numbers, card values, test scores and any list of up to 100 participants.
Pseudo-random vs true random: what is actually happening?
Most everyday random number tools — including the RAND and RANDBETWEEN functions in spreadsheets, and many free websites — use a pseudo-random number generator (PRNG). A PRNG starts from a seed (often the current clock time in milliseconds) and applies a deterministic mathematical formula to produce a sequence that passes statistical tests for randomness. The sequence looks random. It is not: given the same seed, the same formula always produces the same output, without exception.
For low-stakes use this is perfectly fine. For anything where fairness can be disputed — a giveaway, a draw in front of an audience, an exam question selection — a PRNG introduces a theoretical attack surface: someone who knows the seed and the algorithm can predict every number before it is drawn.
A cryptographically secure pseudo-random number generator (CSPRNG) eliminates this weakness. The W3C Web Cryptography API defines crypto.getRandomValues as a browser-native function that collects entropy from hardware sources: thermal noise in the processor, timing jitter in interrupts, and other signals that external observers cannot measure or replicate. The NIST SP 800-22 test suite — the same standard used to certify entropy sources for cryptographic key generation — validates this quality of randomness. Hasardio uses crypto.getRandomValues exclusively. The difference is not cosmetic: it is the boundary between a draw that is statistically random and one that is provably unguessable.
How Hasardio maps cryptographic entropy to a fair integer in the range 1-100
Raw bytes from crypto.getRandomValues arrive as values between 0 and 255. Converting them to an integer in a target range requires care, because a naive modulo operation introduces a tiny bias: some numbers appear slightly more often than others whenever the range does not divide evenly into the source byte's maximum value.
Hasardio eliminates this with rejection sampling: generate a candidate integer, check whether it falls inside the largest exact multiple of the target range, and if it does not, discard it and draw again. This loop runs in microseconds — almost always resolving on the first attempt — and guarantees perfectly uniform distribution across all 100 values.
Every draw is then hashed with SHA-256. SHA-256 produces 2^256 possible fingerprints, a number so vast that two different inputs cannot collide by accident. The hash encodes the draw parameters — range, timestamp, and result — into a unique identifier. If even a single character changed, the hash would become completely different. Sharing this hash alongside your result gives participants a way to verify the draw independently, without needing to trust you.
When is a number between 1 and 100 the right tool?
The 1-100 range is useful whenever participants, options or outcomes can be assigned to a numbered list of up to 100 items. Common situations include:
- **Giveaways and prize draws**: assign a number to each participant, draw once, and announce the winner by their number. The SHA-256 proof confirms you did not pick the result after seeing who held which number.
- **Classroom exercises**: select a page for a pop quiz, choose a student's presentation slot, or generate a random seed for a simulation.
- **Games and role-play**: a "guess my number" challenge, a randomised encounter table in a tabletop game, or a live-stream prize replacement.
- **Fair turn-taking**: use a random number to set speaking order, round-robin starting position, or priority when several requests arrived simultaneously.
- **Sports and competitions**: assign bib numbers, determine lane positions, or set a random seeding order for a bracket.
When participants are identified by name rather than number, a certified random name picker is more natural — you paste names directly without the extra step of assigning numbers to each one. For draws that benefit from a live spinning animation visible to an audience, a random wheel spinner adds a compelling visual layer to the same underlying randomness.
Drawing with and without repetition: what changes?
For most use cases you want an independent draw: each click generates a fresh number with no memory of what came before. This is called sampling with replacement — the same number can appear on consecutive draws, which is perfectly valid and correct statistically.
When you need all numbers in a range to appear exactly once — assigning unique slots to participants, for instance, or creating a randomised order for a full list — you want sampling without replacement. Here, once a number is drawn it is removed from the pool and cannot appear again until the pool resets.
Understanding this distinction prevents a common mistake: running a single-winner giveaway with "replacement" mode and then drawing several times, only to have the same number win twice. If your draw requires unique outcomes, select the no-repetition option explicitly.
Hasardio's draw tool at /en/tirage supports both modes. For a single number between 1 and 100, enter the range and draw once. For a full permutation of the range — where all 100 numbers appear exactly once in a uniformly random order — use the list mode with the no-repetition option. The Fisher-Yates algorithm, which guarantees that every possible ordering is equally likely, handles the shuffle internally.
How to generate a certified random number between 1 and 100 in four steps
The entire process takes under a minute and requires nothing beyond a browser:
- **Open the draw tool** at [Hasardio](/en/tirage) — no account, no app download required.
- **Enter your range**: type or paste the numbers 1 to 100 as your participant list, or use the range field if you prefer.
- **Click Draw**: the animation runs and a single number is returned within seconds.
- **Share the result and the SHA-256 hash**: anyone who received the draw can verify the fingerprint and confirm the number was not changed after the fact.
For a public draw — a streamed giveaway, a classroom vote, or a community raffle — screenshot the result screen and post it together with the hash. Participants do not need to take your word for it; they can verify the proof themselves with any SHA-256 calculator.
Frequently asked questions
Is a random number generated by Hasardio truly random or pseudo-random?
Hasardio uses crypto.getRandomValues, the cryptographic random function defined in the W3C Web Cryptography API. Its entropy comes from hardware sources that external observers cannot replicate, making it cryptographically secure. This is categorically different from software-based functions like Math.random, which are deterministic given the same starting seed.
What is the probability of getting any specific number, say 42?
Exactly 1 in 100, or 1 %, on each independent draw. Previous draws do not change future probabilities. The number 42 is no luckier or unluckier than any other number in the range.
Can the same number appear twice if I draw again immediately?
Yes, in the default independent mode — each draw is memoryless. If you need unique numbers across multiple draws, use the list mode with the no-repetition option, which removes each drawn number from the pool so it cannot appear again.
How does the SHA-256 hash prove the draw was fair?
The hash is a mathematical fingerprint computed from the draw's inputs and output. Because SHA-256 is a one-way function, changing the result or timestamp after the fact would produce a completely different hash. If the hash you share matches the hash computed from the published result and parameters, the draw was not altered.
Is Hasardio free to use?
Yes. All draw features — including the certified random number generator — are entirely free and require no account or subscription.
---
Whether you are resolving a friendly dispute, running a classroom raffle, or certifying a public giveaway, the right generator is not just fast — it is one whose randomness you can prove. Try the free draw tool →
Articles liés
Hasardio — 100% gratuit
Prêt à essayer ?
Certifié SHA-256 · Sans inscription · Résultat en 2 secondes
Generate a random number now