Skip to content

Random Number Generator

Generate random integers or decimals between any two numbers, up to 10,000 at a time. Allow or forbid repeats, and add a seed for a repeatable sequence.

Generating…

Generating numbers in your browser…

Min and Max are both included. Up to 10,000 numbers per run.

Type

With a seed, numbers come from a repeatable generator (mulberry32) and are predictable. Do not use seeded output for anything secret.

Separator

01 · Definition

What is a random number generator?

A random number generator picks numbers from a range so that each possible value is equally likely and no value can be predicted from earlier ones. Cryptographic generators, like the one browsers provide, draw on unpredictable system entropy. Seeded generators run a fixed formula from a starting value, so they repeat exactly, which suits tests and auditable draws.

02 · Overview

How the Random Number Generator works

Pick a minimum and maximum (both included), how many numbers you want, and integers or decimals with 1 to 15 decimal places. Turn off repeats to draw without replacement. By default numbers come from crypto.getRandomValues with rejection sampling, so every value in the range is equally likely. Enter a seed to switch to a repeatable generator (mulberry32) that returns the same sequence for the same seed and settings. If Min is above Max, or the count has to be reduced, the tool says so instead of changing your input. Numbers are generated in your browser.

03 · Guide

How the numbers are generated

The range is treated as a list of equally spaced values: whole numbers in integer mode, or steps of 0.01 at two decimal places. The tool picks a position in that list uniformly and formats it. Picking positions rather than rounding a fraction means the two ends of the range are exactly as likely as every value between them.

To pick a position it takes 32 random bits (53 bits for ranges above 2^32 values) and discards any draw that falls in the incomplete final block, a method called rejection sampling. The shortcut of taking the remainder after division would make low values slightly more common whenever the range does not divide 2^32 evenly.

With no seed the bits come from crypto.getRandomValues. With a seed, the seed text is hashed with FNV-1a to a 32-bit state for mulberry32, a small deterministic generator. The same rejection sampling is applied to its output. Seeded output is predictable by anyone who knows the seed and must not be used for secrets.

04 · Use cases

When to use the Random Number Generator

  1. 01

    Pick a number between 1 and 100

  2. 02

    Draw raffle or lottery-style picks with no repeats

  3. 03

    Generate a column of test numbers and copy it one per line

  4. 04

    Publish a seed before a draw so others can reproduce the result

05 · Examples

Random Number Generator examples

Seed launch-2026, 5 integers, 1 to 100, repeats allowed

ex 01

25, 4, 19, 61, 98

Enter the same seed and settings and you get exactly this sequence.

Seed launch-2026, 6 integers, 1 to 49, no repeats

ex 02

36, 34, 22, 39, 8, 7

Drawn without replacement, so no number appears twice.

Seed dice, 10 integers, 1 to 6

ex 03

3, 1, 5, 6, 2, 5, 6, 5, 3, 5

Ten rolls of a six-sided die, with repeats.

Seed demo, 1 decimal, 0 to 1, 6 decimal places

ex 04

0.997446

One of the 1,000,001 six-place values from 0.000000 to 1.000000.

No seed, 50 integers, 1 to 10, no repeats

ex 05

10 numbers and the note: Only 10 different values exist in this range, so 10 were generated instead of 50.

An impossible request is reported, not silently changed.

06 · FAQ

Random Number: frequently asked questions

Is this cryptographically random?

With the seed field empty, yes: numbers come from window.crypto.getRandomValues, the browser's cryptographically secure generator. With a seed it uses mulberry32, which is repeatable and therefore predictable, and is not suitable for anything security-related.

Are Min and Max included?

Yes, both. 1 to 6 can return 1 and 6. In decimal mode the ends are included too: 0 to 1 at two decimal places can return 0.00 and 1.00, each as often as 0.50.

What is modulo bias and does this avoid it?

Taking a random 32-bit number modulo the size of your range favours the low values whenever the range does not divide 2^32 evenly. The tool uses rejection sampling instead: it discards draws from the uneven tail and draws again, so every value is equally likely. The same method is applied in seeded mode.

What does the seed do?

It replaces the cryptographic source with a deterministic one. The same seed, range, count and options always produce the same numbers, on any device, which makes fixtures reproducible and draws checkable. Change any setting and the sequence changes. Pressing Generate again with a seed returns the same numbers.

Why did I get fewer numbers than I asked for?

With repeats off you cannot draw more values than the range contains: 1 to 10 has only ten integers. The tool generates as many as exist and shows a note saying so. The count is also limited to 10,000 per run, again with a note.

Can I use this for a giveaway or prize draw?

Yes. For a draw others can check, publish a seed and the settings before entries close, then run it afterwards: anyone can enter the same seed and settings here and get the same result. Without a seed each draw is unpredictable and cannot be reproduced.

What are the limits?

A run can produce up to 10,000 numbers. Integers can range from −9,007,199,254,740,991 to 9,007,199,254,740,991. Decimals can have 1 to 15 places, provided the range holds no more than 2^53 distinct values at that precision. Out-of-range input produces a message, not a guess.

07 · Reference

Specs and further reading

These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.

08 · More

Tools that pair with Random Number

Last updated .