Random Number Generator

Generate a random number between any minimum and maximum. Cryptographically secure, instant result with one-click copy. Perfect for raffles, games and statistics.

Generate a random number within any range you choose. Set your minimum and maximum, hit generate, and get an instant, cryptographically secure result. Copy it with one click for raffles, games, homework or decision-making.

When to Use the Random Number Generator

Use the random number generator for raffle draws, lottery-style picks, statistical sampling, game mechanics, or randomised assignments. For simple yes/no decisions, the coin flip is quicker.

Random Number Tips

  • Set 1-6 to simulate a standard die roll, or 1-100 for percentile rolls.
  • Use 0-1 range for quick binary decisions (0 = no, 1 = yes).
  • For PIN generation, set 0000-9999 and generate a random 4-digit code.

Frequently Asked Questions

What range can I generate numbers in?

Any range you like. Set a minimum and maximum value — the generator works with negative numbers, zero, and numbers up to the trillions.

Is the number truly random?

Yes. We use the Web Crypto API (crypto.getRandomValues) for cryptographically secure random number generation. Every number in your range has an exactly equal probability.

Can I generate multiple random numbers at once?

Currently the tool generates one number per click. Click the generate button multiple times for a sequence of random numbers.

Can I use this for lottery numbers?

You can use it to pick random numbers for fun, but official lotteries have their own certified drawing systems. This tool is great for personal raffles and games.

Does it include both endpoints?

Yes. If you set min to 1 and max to 100, both 1 and 100 are possible results with equal probability.

Related Tools