Skip to content
GAMETROZ

Random Number Generator

Pick random numbers in any range, with unique-only, decimals and sorting, using secure randomness.

Processed locally in your browser.

About Random Number Generator

Choose a range and get fair random numbers: raffle picks, lottery-style draws, test data, dice rolls or a quick yes or no. Both the minimum and the maximum can come up.

Numbers come from your browser's cryptographic random number generator. The tool throws away the few values that would make small results slightly more likely, so every number in the range has exactly the same chance. In unique mode a number appears at most once, and you get a clear message if the range is too small for the count you asked for.

How to use Random Number Generator

  1. 1Enter the minimum and maximum; both can be picked.
  2. 2Set how many numbers you want, and turn on Unique to avoid repeats.
  3. 3Add decimal places or sorting if you need them, or tap a preset such as a die.
  4. 4Press Generate and copy the results.

Examples

Input

Lottery style: 6 unique numbers from 1 to 49, sorted

Result

e.g. 4, 12, 19, 27, 38, 45
A sample result; every draw is different.

Input

Roll two six-sided dice: min 1, max 6, count 2

Result

e.g. 3, 5
Repeats are allowed, as with real dice.

Input

7 unique numbers from 1 to 6

Result

Cannot pick 7 unique numbers from a range that only holds 6 values. Widen the range or lower the count.
Impossible requests are explained instead of silently repeating numbers.

Frequently asked questions

Are the numbers truly random?

They come from the cryptographically secure generator built into your browser, which is much better than Math.random and is unbiased across the range. It is suitable for games, draws and sampling, but verify the rules of any official lottery or legal drawing yourself.

How do decimals work?

With 2 decimal places, every value on that grid is equally likely, such as 1.25, 1.26 and so on up to the maximum. The maximum itself can be drawn, as long as it fits the grid.

What are the limits?

Minimum and maximum can be between -1,000,000,000 and 1,000,000,000, you can ask for up to 1,000 numbers at once, and use up to 6 decimal places.

Guides

Tools guide

Best Free Online Developer Tools

A tour of the free developer and generator tools in the Gametroz catalog: JSON, Base64, URL, timestamps, hashes, UUIDs, passwords, QR codes and more.

· 3 min read