Random Number Generator

11

Random number generator: integers in any range

A random number generator picks an integer between a minimum and maximum you set—dice rolls, giveaway winners, classroom demos, or quick test data. Set the bounds, click randomise, and copy the result.

This uses the browser’s pseudo-random source (`Math.random`). It is fine for games and casual sampling, not for cryptography or lotteries that require audited randomness.

How to use this converter

  1. Enter the inclusive minimum and maximum integers.
  2. Confirm min is less than max.
  3. Click Randomise to draw a new value.
  4. Copy the number, or draw again for the next pick.

Before and after examples

OriginalConvertedNotes
Min 1, Max 6Dice-style rollBoard games
Min 1, Max 100Percentile-style pickClassroom demos

Games, classrooms, and testing

Replace physical dice, pick raffle numbers, or assign random partners in a workshop. Developers use ranges to stub IDs and edge-case inputs during UI tests.

For choosing among named options (team names, lunch spots), the random choice generator is clearer than mapping labels to numbers yourself.

Fairness and inclusive ranges

Each draw is independent: previous results do not “balance out.” Inclusive bounds mean both endpoints can appear. If you need sampling without replacement (no repeats until the list is exhausted), shuffle a list offline or track used values manually.

Not for passwords or keys

Do not build passwords from short numeric draws alone. Use the strong password generator for login secrets and the UUID generator for opaque identifiers. Cryptographic keys need APIs designed for that purpose (`crypto.getRandomValues` in vetted code), not a casual integer picker.

Frequently asked questions

Are results truly random?

They are pseudo-random from the browser—suitable for casual use, not certified drawings or cryptography.

Can I generate decimals?

This tool returns integers. Scale a 0–1000 draw yourself if you need fixed-point decimals.

Does it work offline?

After the page is loaded, generation does not need a network request.

Guides and deeper reading