DexartTools

Random Number Generator

Draw random integers from any range — one number or a batch, with no repeats and sorting — using the browser's cryptographic RNG, not Math.random.

About Random Number Generator

Pick a minimum and a maximum and draw one value or up to a thousand at a time. Switch on 'no repeats' and every number in the sample is distinct, drawn without replacement from the range; switch on sorting and the result comes back in ascending order, which is what a lottery line or a raffle ticket list needs.

The draw uses crypto.getRandomValues with rejection sampling rather than Math.random(). Two reasons. Math.random is not required to be unpredictable, so a value someone else might be betting on should not come from it. And `min + Math.random() * (max - min)` rounded, or any `% range`, is not uniform: it quietly favours some outcomes. Rejection sampling discards the biased part of the space and returns a genuinely flat distribution. Dice, coin flips and lottery presets are on the same page for the same reason.

Uniqueness is bounded by the range — asking for 50 distinct numbers out of 1 to 20 is refused rather than silently looping forever. Even with a CSPRNG, treat the output as fair random draws, not as a secret: for a key or token use the password generator instead.

How to use

  1. 1Open the Random Number Generator tool page.
  2. 2Enter or paste your input into the provided fields.
  3. 3The tool processes your input instantly in your browser.
  4. 4Copy or download the result using the buttons provided.

Privacy & limitations

  • Processing happens locally in your browser — nothing is uploaded.
  • Works on modern desktop and mobile browsers.
  • Very large inputs may take a moment; the interface will show progress.

Support

Found a bug or want an improvement? We read every report.

Report a problem

Frequently asked questions