Random Number Generator

Cryptographically random numbers in any range — draws, raffles and picks.

Your inputs are sent to our server to calculate the result and are not intentionally retained. See our privacy policy.

About this calculator

Prize draws, raffle winners, random audits, team pickers — anything where fairness matters deserves better than "think of a number". This generator uses a cryptographically secure random source, supports any range, multiple picks, and a lottery-style unique mode with no duplicates.

The formula

Each number drawn uniformly at random from [Min, Max] Unique mode: drawing without replacement

Worked example

Picking 3 unique winners from 250 raffle tickets: set 1–250, count 3, unique — e.g. 17, 203, 96.

Common mistakes

  • Running the draw repeatedly until a preferred result appears — decide the rules before generating.
  • Using duplicates-allowed mode for winner selection, where one entrant could win twice.
  • Generating from a range that doesn't match the entry count.

Frequently asked questions

Yes — it uses the operating system's cryptographic random source, the same quality used for security keys. Screenshot the result for your records.

Number your list, then generate in that range — entry 1 to N.

No — each result is generated on request and shown only to you.

Assumptions & limitations

Uniform distribution; independent draws unless unique mode is selected.

Sources & verification

  • PHP random_int() — Numbers come from a cryptographically secure random number generator

All sources last accessed 24 July 2026.

Formula last verified: 24 July 2026
Maintained by: Steve Davis, Founder & Editor — see our editorial standards

Spotted an error or an out-of-date figure? Report it — corrections are prioritised over all other work (see our corrections policy).

Related calculators

Use this calculator on your website

Free embed for registered domains — takes two minutes to set up.
Get the embed code