Local · Private · Free

Random Number Generator

Cryptographically fair numbers with no modulo bias. Any range, any count, decimals, unique draws, dice, coin flips and lottery picks, all on your device.

Quick presets
Generated locally in your browser, nothing is uploaded.
Fair by construction: numbers come from crypto.getRandomValues with rejection sampling, so there is no modulo bias, every value in your range is exactly equally likely.

Result

Hit Generate or tap a preset to draw.

History (last 10 draws)

Why "no modulo bias" matters

The lazy way to make a random number, random() % range, slightly favours smaller values whenever the range doesn't divide evenly into the generator's space. This tool instead draws 53-bit values from your browser's cryptographic generator and rejects the few that would skew the result, so dice rolls, raffle picks and lottery lines are genuinely uniform. Unique draws use an unbiased partial Fisher, Yates shuffle. Everything happens on your device, free forever, nothing uploaded.

About Random Number Generator

Random Number Generator is a free, private productivity tool that runs entirely in your web browser. It uses cryptographic randomness with rejection sampling, so every value in your range is exactly equally likely. No sign-up or installation is required, nothing is uploaded to a server, and the tool keeps working offline. Like every free online tool by Digital Heroes, it is 100% free with no limits.

What you can do

How to use Random Number Generator

  1. Open Random Number Generator in your browser. No signup needed.
  2. Set your Min and Max values, choose how many numbers to draw, and pick decimal places if needed.
  3. Check Unique to prevent repeats, or Sort ascending to order the results.
  4. Click Generate, or tap a preset such as d6, Coin flip, or Lotto 6/49.
  5. Copy the result or download a CSV. Your data never leaves your device.

Frequently asked questions

Is Random Number Generator free?

Yes, Random Number Generator is completely free for everyone. No sign-up, no account and no usage limits.

Is it private? Are my files uploaded anywhere?

No. Random Number Generator runs entirely in your browser on your own device, so your data never leaves your computer and nothing is uploaded to a server.

Does it work offline?

Yes. This tool is a Progressive Web App, once the page has loaded it keeps working offline, and you can install it as an app from your browser.

Do I need to install anything or create an account?

No. Just open the page and start using it. Installing it as an app is optional and only adds offline convenience.

What does Random Number Generator do?

It generates cryptographically random numbers in any range you set. Features include unique mode (no repeats), sorting, decimal places, and one-click presets for dice, coin flips, and lottery draws.