NX-34 · Randomizers

Random Number Generator

Pick random numbers in a range, with or without duplicates.

Range

Result

Click "Generate" to roll.

About Random Number Generator

Generate one or many random numbers within a range you set, with the option to allow or exclude duplicates, built on the browser's cryptographic random source rather than a predictable pseudo-random generator.

Genuinely random, not just pseudo-random

Uses the browser's `crypto.getRandomValues()` with rejection sampling to produce unbiased integers within your chosen range — a more careful approach than a simple modulo of `Math.random()`, which can skew results.

How to use it

Set your minimum and maximum, choose how many numbers you want, decide whether duplicates are allowed, and generate.

Use cases

Pick a random winner from a numbered list. Generate a set of unique random numbers for a raffle or drawing. Get a quick random number within a specific range for any purpose.

Limitations

Generates random integers within a range — it doesn't support weighted probabilities or non-integer random values.

Is this truly random, or just Math.random()?

It uses the browser's cryptographic random source (`crypto.getRandomValues()`) with rejection sampling to avoid bias, not a simple pseudo-random generator.

Can I exclude duplicates?

Yes — there's a toggle to require every generated number be unique within the batch.

Is this actually free?

Yes.