🔢

Random Number Generator

Generate random numbers within any range.

🔒 Runs entirely in your browser — nothing is uploaded.

How Random Number Generator works

How does the random number generator work?

It uses JavaScript's built-in Math.random() to produce values between your chosen min and max, either as whole numbers or with a set number of decimal places. When "No duplicates" is checked, it keeps drawing numbers into a Set until it has enough unique ones, giving up after 100 attempts per requested value if the range is too small.

When would I use this?

It works well for picking a raffle winner's ticket number, generating sample data for a spreadsheet, or settling on a random value between two limits for a game or decision. You can generate up to 1,000 numbers in one pass and copy the comma-separated list straight out.

Is this safe to use for anything like a lottery or security purpose?

No - it relies on Math.random(), which is a fast, non-cryptographic generator, not crypto.getRandomValues(). That's fine for games, samples, or casual decisions, but it shouldn't be trusted for anything where the outcome needs to be unpredictable in a security sense, like generating a token or seed.