Random number generator

Generate one or more random numbers in a range, with or without repeats. Useful for raffles, giveaways, games, classroom activities and samples.

Fix the highlighted fields to see your result.

Result—

How it is calculated

Each number comes from crypto.getRandomValues with rejection sampling, so every value in the range has exactly the same probability.

Probability of each number = 1 ÷ (To − From + 1)

Assumptions and limitations

  • With "No repeats", the count cannot exceed the size of the range.
  • Results are not saved: write them down or take a screenshot.

This tool is educational and provides estimates. It is not a credit offer or financial advice. Actual terms are set by each institution.

Frequently asked questions

Are these numbers truly random?

They come from crypto.getRandomValues, the cryptographically secure generator built into your browser, with a method that avoids bias. That makes them suitable for raffles and games, but not for official lotteries that require certified equipment.

How do I pick winners without repeats?

Turn on "No repeats". Each number in the range can then appear only once, like drawing tickets from a hat.

Can I use it for a giveaway on social media?

Yes. Number your participants, set the range from 1 to the total and generate as many winners as you need. Take a screenshot as a record.