Blog
Wild & Free Tools

Excel RANDBETWEEN vs Online Random Number Generator

Last updated: April 2026 6 min read

Table of Contents

  1. How RANDBETWEEN Works
  2. When RANDBETWEEN Is Fine
  3. When to Use Online
  4. Annoyances
  5. Frequently Asked Questions

Excel has built-in random number functions: RAND() and RANDBETWEEN(min, max). They work, they are fast, and they are useless for security. For 80% of uses they are fine. For the other 20%, you want a cryptographic random source like free random number generator.

This page covers when each one is right and the practical differences.

How Excel RANDBETWEEN Works

The formula is =RANDBETWEEN(1, 100). It returns a uniformly distributed integer between the two arguments, inclusive. Every recalculation (F9 or any sheet change) generates a new value.

Under the hood, RANDBETWEEN uses Excel's pseudo-random number generator (PRNG) — a deterministic algorithm seeded from the system clock. It is fast, reproducible if you know the seed, and statistically uniform across the requested range.

What it is not: cryptographically secure. Anyone with access to the seed (or the system clock at the time of generation) can reproduce the entire sequence. This is fine for spreadsheet samples and bad for password generation or lottery picks.

When RANDBETWEEN Is the Right Tool

For these uses, opening a browser and clicking Generate is slower than just typing the formula.

Sell Custom Apparel — We Handle Printing & Free Shipping

When to Use an Online Generator Instead

our random number generator is the right tool when you need real randomness or when Excel is overkill.

RANDBETWEEN Annoyances to Know

our random number generator handles "no duplicates" with a single checkbox. For one-off needs, the online tool is faster.

Generate Random Numbers Now

Set your range, pick how many, optionally avoid duplicates. Cryptographically secure, runs in your browser, nothing logged.

Open Random Number Generator

Frequently Asked Questions

Is RANDBETWEEN cryptographically secure?

No. Excel uses a pseudo-random generator. Fine for samples, not safe for passwords, tokens, or lottery picks.

How do I freeze RANDBETWEEN results in Excel?

Copy the cells, then Paste Special → Values into the same cells. The numbers become static and no longer recalculate.

Can RANDBETWEEN avoid duplicates?

Not directly. You need helper columns with rank/match formulas, or use the modern array functions (SORTBY, RANDARRAY) in newer Excel.

Launch Your Own Clothing Brand — No Inventory, No Risk