Skip to content

Install ALink Tools

Free browser tools for images, PDFs, media, text and web checks. Most tools process files locally on your device.

  1. Tap the Share button in the Safari toolbar.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add. ALink Tools then opens from your Home Screen like an app.

Random Number Generator

Draw random integers or decimals with the browser’s cryptographic generator (crypto.getRandomValues).

Runs in your browserRuns in your browserWeb Crypto
1

Range & count

Limits

  • Uses crypto.getRandomValues only. Will not run if the browser does not provide Web Crypto.
  • Not an audited lottery or official drawing system. No seed, no replay.
  • At most 10,000 numbers per draw. Unique mode is for integers only.

See the full list under Limits and how it works below.

2

Numbers

Result
—

How to use Random Number Generator

  1. Set the range and how many numbersFor whole numbers the range is inclusive on both ends. For decimals the draw is in [minimum, maximum).
  2. Optional unique integersTurn on unique values to sample without replacement. You cannot ask for more unique integers than the range contains.
  3. Generate and copyEach click draws new values. There is no seed and a sequence cannot be replayed.

Limits and how it works

  • Uses crypto.getRandomValues only. Will not run if the browser does not provide Web Crypto.
  • Not an audited lottery or official drawing system. No seed, no replay.
  • At most 10,000 numbers per draw. Unique mode is for integers only.
  • Integer range must fit in 2^32 distinct values.

Cryptographic randomness from your browser

Integers are drawn with rejection sampling so every value in the inclusive range is equally likely (no modulo bias). Decimals use a 53-bit uniform value in [0, 1) scaled to your range. The source is crypto.getRandomValues, the Web Crypto interface provided by the browser.

This is suitable for games, sampling and most everyday uses. It is not an audited lottery, raffle or drawing system, and it cannot reproduce a sequence from a seed.

Frequently asked questions

Is this the same as Math.random()?

No. Math.random() is not specified as cryptographically strong. This page uses crypto.getRandomValues only.

Why can’t I set a seed?

A cryptographic generator is not designed to be replayed. If you need a repeatable sequence, you want a seeded PRNG, which this page does not provide.

Are the numbers uploaded?

No. They are generated in your browser and never sent to a server.

Related tools

All tools