purr.tools

Random Number Generator

Set a range and how many numbers to generate, then click the button. All results are generated locally in your browser.

Share this calculation

Copy this link to share your current inputs with anyone.

How to generate random numbers

Enter the minimum and maximum values for your range (e.g. 1 and 100), choose how many numbers to generate (up to 100), then click Generate. Each number is drawn independently using a cryptographically seeded random function, so results are uniformly distributed across the range.

Common random number ranges

Dice: 1–6 (d6), 1–20 (d20). Coin flip: 0–1. Lottery pick: 1–49 or 1–69. Percentage: 1–100. Playing card rank: 1–13. Random month: 1–12. Random day: 1–31. PIN digit: 0–9.

Frequently Asked Questions

Are the numbers truly random?

They use JavaScript's Math.random(), which is a pseudo-random number generator seeded by the browser. It is statistically uniform and unpredictable, suitable for games, sampling, and decision-making.

Can I generate the same number more than once?

Yes — each number is drawn independently, so duplicates are possible when generating multiple numbers. This mirrors drawing with replacement.

Embed this tool

Add this tool to your website by copying the snippet below.

<iframe
  src="https://purr.tools/en/embed/random-number-generator"
  width="100%"
  height="500"
  style="border:0;border-radius:8px;"
  loading="lazy"
  title="Random Number Generator — Free Online Tool"
  allow="clipboard-write"
></iframe>