Random Number Generator

Pick fair random numbers for draws, contests, lotteries, games and sampling: whole numbers or decimals, one or up to 10,000 at a time, with or without repeats.

Fair by design

Numbers come from the browser's cryptographically secure generator, with rejection sampling so every number in your range is equally likely. There is no bias towards low numbers.

Uses

  • Picking giveaway winners by comment or entry number.
  • Seat and roll-number allotment, or a random sample from a numbered list.
  • Dice, games and classroom activities, or a random decimal for a simulation.

Frequently asked questions

Is it truly random?

It uses crypto.getRandomValues, the same secure source browsers use for encryption keys, so results can't be predicted. Every number in your range is equally likely.

How do I pick 3 winners from 250 entries?

Set the minimum to 1, the maximum to 250 and how many to 3, and tick 'No repeats' so nobody wins twice. Tick 'Sort from low to high' if you want the entry numbers in order.

Can I get random decimal numbers?

Yes. Choose 1 to 6 decimal places. With 2 decimal places, a range of 1 to 2 gives one of the 101 values 1.00, 1.01 … 2.00, each equally likely.

Can the numbers be negative?

Yes. Use a negative minimum, such as −10 to 10. The range can be up to about 4.29 billion numbers wide.

Is anything recorded?

No. Numbers are generated in your browser and aren't sent anywhere.

More everyday calculators

See all everyday calculators →

Can't find the tool you need? Tell us.