Random Number Generator

Generate secure random numbers in any range — one or thousands, unique or sorted.

How do I generate a random number?

A random number generator picks numbers in a range so that every value has the same chance. This tool uses the browser's cryptographically secure generator and avoids modulo bias, so results are fair.

Options

  • Range — any whole numbers, including negatives.
  • How many — from 1 to 10,000 numbers.
  • No duplicates — each number appears at most once (like drawing lottery balls).
  • Sort — order the results from low to high.

Uses: picking lottery or raffle numbers, choosing random samples, games and dice rolls (1–6), and test data. To pick names instead of numbers, use the Random Name Picker.

Frequently asked questions

Are the numbers truly random?

They come from a cryptographically secure pseudo-random generator, which is unpredictable and suitable for draws.

What is modulo bias?

A small unfairness when random values are reduced to a range with %. This tool rejects biased values to keep every number equally likely.

Can I roll dice?

Yes, set the range to 1–6.