RT Random Tools

Random Number Generator

Generate secure random integers in a range with count, duplicate and sort options.

πŸ”’ Runs entirely in your browser β€” nothing is uploaded

Numbers will appear here.

Was this tool useful? Rate it:

Generate random integers in a range

This random number generator is built for straightforward integer results: pick a minimum, maximum and count, then generate. It can produce one number for a quick decision or a whole batch for drawings, practice data, classroom examples and small simulations. Results appear in a large copyable box, and the sort option can arrange batches from low to high when readability matters more than preserving the generated order.

The tool uses crypto.getRandomValues, the browser API designed for strong random bytes. To avoid modulo bias, values outside an even bucket are rejected and redrawn before they are mapped into your requested range. That detail is invisible during normal use, but it helps every integer in the range have the same chance. The generator is still a client-side convenience tool, not a replacement for audited lottery systems or regulated cryptographic workflows, but it is a solid fit for everyday fair selections.

Duplicates or unique numbers?

Allow duplicates when each draw should be independent, like rolling a die where the same value can come up many times. Turn duplicates off when you are sampling without replacement, such as choosing ticket numbers, assigning seats or creating a unique practice set. If you ask for more unique numbers than the range contains, the page automatically limits the count to the available range and tells you what happened.

Private number generation

No range, count or result is sent to a server. Everything is generated in your browser and disappears unless you copy it somewhere else. That keeps small internal drawings, classroom materials and draft data sets simple and private.

Choosing a good range

Both the minimum and the maximum are included, so a range of 1 to 100 can return either end. Negative values work too, which is useful for temperature samples or score offsets. Setting a count above one gives you a batch in a single click, handy for filling a worksheet or drawing several raffle tickets at once.

For a fair draw among numbered entrants, set the minimum to the first ticket, the maximum to the last, turn duplicates off and set the count to the number of winners. Reversed limits are swapped automatically, so entering 50 and 10 behaves like 10 and 50. Because results are not stored, copy them before generating again if you need a record of the draw.

How to use

  1. Set the rangeEnter the minimum and maximum integer values you want to allow.
  2. Choose countGenerate one number or a batch of random numbers.
  3. Pick optionsAllow duplicates for sampling with replacement, or sort the result for readability.

Frequently asked questions

Does this use crypto randomness?
Yes. Random integers are generated with crypto.getRandomValues in the browser.
Can I prevent duplicates?
Yes. Turn off Allow duplicates and the tool will only return unique numbers within the selected range.
What happens if I request too many unique numbers?
The page limits the count to the size of the range and explains the adjustment.
Are generated numbers stored?
No. They appear only in your browser and can be copied if you choose.